Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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
User | Count |
---|---|
124 | |
108 | |
99 | |
62 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |