Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I've reviewed several posts and this seems mostly the same as Solved: Re: DAX Question: Running Totals with Missing Valu... - Microsoft Fabric Community, but I can't seem to understand the formula well enough to adapt it.
Basically I have a running total of orders in each hour. It's in a single table (query result) that groups the results per hour and some other dimensions (obfuscated here but we can just say order type).
This is the same data as Stacked Bar and as matrix for comparison.
Notice the purple category (type 1) is present in hour 1 but missing from hours 2 and 3? But then it appears again in 4.
I want the running total to repeat the same total if it is unchanged, so that the chart only grows.
Basically the way Excel pivot chart would do it.
I don't really want to use a calendar table because then I'll need a literal table of every hour and that seems weird. Can I just modify the formula as Solved: Re: DAX Question: Running Totals with Missing Valu... - Microsoft Fabric Community did, perhaps by using unique order type from the same table?
@CmdrKeene , have separate hour column and hour table and have measure like
Cumm Hour= CALCULATE(SUM(Sales[Amount]),filter(all('Hour'),'Hour'[Hour] <=max('Hour'[Hour])))
Cumm Based on Hour= CALCULATE(SUM(Sales[Amount]), Window(1,ABS,0,REL, ALL('Hour'[Hour]),ORDERBY('Hour'[Hour],ASC)))
or you try cumulative with window with partition by
Continue to explore Power BI Window function Rolling, Cumulative/Running Total, WTD, MTD, QTD, YTD, FYTD: https://youtu.be/nxc_IWl-tTc
https://medium.com/@amitchandak/power-bi-window-function-3d98a5b0e07f
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 47 | |
| 43 | |
| 40 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 25 |