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
I am running aggregate totals based on GL for one of my reports. There is a gap in entries for a few periods where i would like to carry the previous periods amount if there were no transactions that period. Cant seem to get the logic after the initial cumulative code. THanks
I am sorry i shouldve been more specific. I do not have an issue with the cumulative total rather when i try to break out the individual GLs and there is no entry for that specific period. This example shows me filtering the cumulative total and in period 6 there is no value so in the table it shows up as blank where i want it to show 27480.48 until period 7 where there is a new entry
Hi there!
For cumulative sum you try this:
CALCULATE (
SUM ( ColumnToSum ),
FILTER (
ALL ( DateTable ),
DateTable[Date] <= MAX ( DateTable[Date] )
)
)
Let me know if that helps!
@bhatfield , The FiscalProfilePeriod should be a separate table like the date table. and period on axis should also come from FiscalProfilePeriod
and use all on table in place of table column
filter(all(FiscalProfilePeriod ), <rest of the code >
i figured it out
those dates are from a profile that is fiscal period the date table is separate from them
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.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
114 | |
79 | |
78 | |
47 | |
39 |
User | Count |
---|---|
147 | |
115 | |
65 | |
64 | |
53 |