The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi there,
Below is the sum of Sales with
LLM last last month, LM Last Month, TM This Month
Hope my result like:
1st approach:
Right now i can retrieve the result by selecting Billing Month.
Without selecting Billing Month Error Message: A table of multiple values was supplied where a single value was expected
2nd approach:
Its not working since i have to use month as one of my parameter.
How can I modify the code so that I can have a full picture without selecting Month.
Thank you for your help.
Sammy Chu
Solved! Go to Solution.
mSale:=SUM(Sales[sale])
mSalesLM:=CALCULATE([mSale],PARALLELPERIOD('Calendar'[Date],-1,MONTH))
mSalesLLM:=CALCULATE([mSale],PARALLELPERIOD('Calendar'[Date],-2,MONTH))
mSale:=SUM(Sales[sale])
mSalesLM:=CALCULATE([mSale],PARALLELPERIOD('Calendar'[Date],-1,MONTH))
mSalesLLM:=CALCULATE([mSale],PARALLELPERIOD('Calendar'[Date],-2,MONTH))
Hi @RichardOfSydney ,
Thank you for your help.
But the LLM get the same result with This month.
Cheers,
Sammy Chu
Dont use the var, they are 3 distinct measures.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
19 | |
18 | |
16 | |
13 |
User | Count |
---|---|
39 | |
38 | |
23 | |
21 | |
20 |