Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
I have the following DAX:
Hello @rwong1,
Can you please try this:
VAR _FirstSelectedMonth =
CALCULATE(MIN('Date'[MonthID]), ALLSELECTED('Date'))
VAR _YearOfFirstSelectedMonth =
CALCULATE(MIN('Date'[Year]), ALLSELECTED('Date'))
VAR _PriorMonth =
IF(_FirstSelectedMonth > 1, _FirstSelectedMonth - 1, 12)
VAR _YearOfPriorMonth =
IF(_FirstSelectedMonth > 1, _YearOfFirstSelectedMonth, _YearOfFirstSelectedMonth - 1)
VAR _A =
CALCULATE (
AVERAGEX ( VALUES ( 'Date'[Mo Cal Yr] ), [Total Assets] ),
FILTER (
ALL ( 'Date' ),
'Date'[MonthID] = _PriorMonth && 'Date'[Year] = _YearOfPriorMonth
)
)
➤ Email: sahir@sahirmaharaj.com
➤ Lets connect on LinkedIn: Join my network of 12K+ professionals
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30k readers! Sharing my knowledge about data science and artificial intelligence
Hi Shair,
I got a syntax error. I'm not sure why.
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.