>> Download the sample (Power BI)
This sample shows sales in both local currency and GBP.
Dashboard - Snippet
Section titled “Dashboard - Snippet”
Data Model - Snippet
Section titled “Data Model - Snippet”
Measures - Sales
Section titled “Measures - Sales”Total Revenue
Section titled “Total Revenue”Total Revenue =SUMX ( Sales_Table, Sales_Table[Quantity] * Sales_Table[Unit Price] )Total Revenue Ccy Adj
Section titled “Total Revenue Ccy Adj”Total Revenue Ccy Adj =SUMX ( Sales_Table, ( Sales_Table[Quantity] * Sales_Table[Unit Price] ) / LOOKUPVALUE ( FX_Table[FX Rate], FX_Table[Date], Sales_Table[Date], FX_Table[Currency], Sales_Table[Currency Code] ))Tables
Section titled “Tables”Calendar_Table
Section titled “Calendar_Table”Calendar_Table =GENERATE ( CALENDAR ( DATE ( 2017, 1, 1 ), DATE ( 2019, 12, 31 ) ), VAR currentDay = [Date] VAR Day = DAY ( currentDay ) VAR Month = MONTH ( currentDay ) VAR Year = YEAR ( currentDay ) RETURN ROW ( "Day", day, "Month", month, "Year", year ))