The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I have a running total DAX calculation that works based on the Month column in my date table.
CALCULATE(
[Volume],
FILTER(
ALLSELECTED('Date'[Month]),
ISONORAFTER('Date'[Month], MAX('Date'[Month]), DESC)
)
)
I have another table in my semantic model called Fiscal period. I want the user to be able to see the running total of volume regardless of which column they are viewing the data by either Month or Fiscal Period. I could create another measure using the below code.
CALCULATE(
[Period],
FILTER(
ALLSELECTED('Fiscal Period'[Period]),
ISONORAFTER('Fiscal Period'[Period], MAX('Fiscal Period'[Period]), DESC)
)
)
However that isnt very user friendly having 2 measures. Is there a way of creating a running total measure that will work against the 'Fiscal Period'[Period] column and the 'Date'[Month] column.
Hello @philip_nwdba,
Can you please try this approach:
Unified Running Total =
CALCULATE(
[Volume],
FILTER(
ALLSELECTED('Unified Date'[Unified Date]),
ISONORAFTER('Unified Date'[Unified Date], MAX('Unified Date'[Unified Date]), DESC)
)
)
Hi, what is the unified date column?
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
31 | |
12 | |
10 | |
10 | |
9 |