Thursday, January 30, 2020

How to Convert MMM-YY string to Date Format using M Query in Power BI

How to use M-Query to Convert MMM-YY string to Date Format in Power Query
Example :
Suppose we have sample "Customers" table as follows..


Now from the above DateString column we will generate the Custom Column "Date" using the below M Query in Power Query :
Date.FromText("01/" & Text.Start([DateString],3) & "/20" & Text.End([DateString],2))


Notes :
The M Query Text.Start function is equivalent to the LEFT Function in Power BI, and the M Query Text.End function is equivalent to the RIGHT Function in Power BI.

Result :

Finally change the DataType of  "Date" column to Date format from the Transform Tab of the Power Query.

Notes :
#date([#'Transaction_Year']',[#'Transaction_Month'],[#'Transaction_Day']) returns the Date.
Date.MonthName(#date) returns the Month Name.
Number.ToText([#'Transactions_Number') converts number to the text format.

-------------------------------------------------------------------------------------------------------- 
Thanks, TAMATAM ; Business Intelligence & Analytics Professional 
--------------------------------------------------------------------------------------------------------

Tuesday, January 28, 2020

Microsoft Power BI Theme Colors with HEX Codes

Microsoft Power BI Themes Colors with Hex Codes Reference

--------------------------------------------------------------------------
List of popular UNICODE / UNICHAR Symbols (only for reference):


--------------------------------------------------------------------------
List of popular Colour Shades with HEX Codes (only for reference):










--------------------------------------------------------------------------
List of popular Colours with HEX Codes (only for reference):





















































--------------------------------------------------------------------------
List of popular Colour Palettes with HEX Codes (only for reference):













--------------------------------------------------------------------------
List of popular Gradient Colours with HEX Codes (only for reference):


--------------------------------------------------------------------------------------------------------
Thanks, TAMATAM ; Business Intelligence & Analytics Professional
--------------------------------------------------------------------------------------------------------

Featured Post from this Blog

How to compare Current Snapshot Data with Previous Snapshot in Power BI

How to Dynamically compare two Snapshots Data in Power BI Scenario: Suppose we have a sample Sales data, which is stored with Monthly Snapsh...

Popular Posts from this Blog