Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Spekko
Helper I
Helper I

combining x axis hierarchy with running total measures

Hi all,

 

My situation:

I have a dataset with among others:

Dim_Date (date-table)

 

DatekeyYearYearQuarterYearMonthYearWeek
2020010120202020-Q12020-M012020-W01
2020010220202020-Q12020-M012020-W01
...    
2020011020202020-Q12020-M012020-W02
...    

 

Fact_Commit

DatekeyValue
2020010150000
2020011050000
... 

 

These are linked through the Datekey.

 

Then I have various measures. These measures calculate the Running Total of the Commits based on the active filter on the chart.

For instance:

 

Commit RT in YearMonth = CALCULATE( SUM('Fact_Commit'[Commit]),
FILTER( ALLSELECTED('Dim_Date'[YearMonth]),
ISONORAFTER('Dim_Date'[YearMonth],
MAX('Dim_Date'[YearMonth]), DESC) ) )

 

There is a Commit measure for YearQuarter, YearMonth and YearWeek. So 3 separate measures.

I currently have three separate charts, showing the Commit RT and some other data with respectively the YearQuarter, YearMonth or YearWeek field on the X-Axis.

If I add these three fields in one chart, the measure only shows the right result when the date-category on the x-axis is the same as the one used in the measure used in t. 

 

Is it possible to combine the above to one chart, where on the X-Axis I have the hierarchy of YQ, YM and YW. And there is one measure which shows the desired result, depending on the hierarchy-level the user chooses in the X axis?

1 ACCEPTED SOLUTION
2 REPLIES 2
amitchandak
Super User
Super User

Ah, right. Completely forgot about the bookmark option, thanks for pointing it out!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.