Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Power BI Maestros:
Thanks to the help of this forum, I have a measure which calculates trailing 12-months of sales (see below), however, seeking guidance on how I can edit measure so that it only returns sales data where there's a complete 12-months of sales (i.e., if a restaurant only has 6 months of trailing sales then it would be null). Thank you, ~db
Cumulative_Sales = CALCULATE(
if(
countrows(values('DATE'[Date])) = 1,
[TABC_SALES],
SUMX(
values('DATE'[Date]),
[TABC_SALES]
)
),
DATESINPERIOD(
'DATE'[Date],
LASTDATE('DATE'[Date]),
-12,
MONTH
)
)
Solved! Go to Solution.
Hi @dentonblake,
Share the link from where i can download your PBI file.
Hi @dentonblake,
Share the link from where i can download your PBI file.
Thank you, Ashish - apologize for the long delay in expressing gratitude for your assistnace. ~db
You are welcome.
Denton,
I recorded a video message for you 🙂
https://youtu.be/ojcqKTP3VYc (see also, file attached)
⚡Power On!⚡
-Avi Singh. Microsoft MVP. PowerBIPro
Power BI Tutorial for Beginners (Step-by-Step) and more on YouTube.com/PowerBIPro
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |