Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
If I don't use the "Date hieachy" in the X axis but just the date, it does work but that is not what I want to do.
Thank you
Solved! Go to Solution.
I just realize that when using Quick measures you can select the hierarchi level for which you want the running total to work, if you just add them all (select one on the user interface then add the rest on the formula bar), the graph should work.
CALCULATE(
SUM(BaselineTrackingVariableBase[Adj]),
FILTER(
CALCULATETABLE(
SUMMARIZE(
' BaselineTrackingVariableBase',
' BaselineTrackingVariableBase' [Action Date].[MonthNo],
' BaselineTrackingVariableBase' [Action Date].[Year],
' BaselineTrackingVariableBase' [Action Date].[Quarter],
' BaselineTrackingVariableBase' [Action Date].[Month]
),
ALLSELECTED(' BaselineTrackingVariableBase')
),
ISONORAFTER(
' BaselineTrackingVariableBase' [Action Date].[MonthNo], MAX(' BaselineTrackingVariableBase' [Action Date].[MonthNo]),DESC,
' BaselineTrackingVariableBase' [Action Date].[Year], MAX(' BaselineTrackingVariableBase' [Action Date].[Year]),DESC,
' BaselineTrackingVariableBase' [Action Date].[Quarter], MAX(' BaselineTrackingVariableBase' [Action Date].[Quarter]),DESC,
' BaselineTrackingVariableBase' [Action Date].[Month], MAX(' BaselineTrackingVariableBase' [Action Date].[Month]),DESC
) && BaselineTrackingVariableBase[Type] = "Baseline"
)
)
I just realize that when using Quick measures you can select the hierarchi level for which you want the running total to work, if you just add them all (select one on the user interface then add the rest on the formula bar), the graph should work.
CALCULATE(
SUM(BaselineTrackingVariableBase[Adj]),
FILTER(
CALCULATETABLE(
SUMMARIZE(
' BaselineTrackingVariableBase',
' BaselineTrackingVariableBase' [Action Date].[MonthNo],
' BaselineTrackingVariableBase' [Action Date].[Year],
' BaselineTrackingVariableBase' [Action Date].[Quarter],
' BaselineTrackingVariableBase' [Action Date].[Month]
),
ALLSELECTED(' BaselineTrackingVariableBase')
),
ISONORAFTER(
' BaselineTrackingVariableBase' [Action Date].[MonthNo], MAX(' BaselineTrackingVariableBase' [Action Date].[MonthNo]),DESC,
' BaselineTrackingVariableBase' [Action Date].[Year], MAX(' BaselineTrackingVariableBase' [Action Date].[Year]),DESC,
' BaselineTrackingVariableBase' [Action Date].[Quarter], MAX(' BaselineTrackingVariableBase' [Action Date].[Quarter]),DESC,
' BaselineTrackingVariableBase' [Action Date].[Month], MAX(' BaselineTrackingVariableBase' [Action Date].[Month]),DESC
) && BaselineTrackingVariableBase[Type] = "Baseline"
)
)
hi @bklyn3
in cases like this, i would
1) create needed month, quarter columns in the Date Table.
2) write different measures for running total over different levels. e.g. if running over quarter, we put quarter inside MAX.
User | Count |
---|---|
14 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
21 | |
11 | |
10 | |
9 | |
8 |