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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
amnaanwer
Regular Visitor

Date hierarchy format not working in line and stacked column chart

Hi everyone,

 

I am using a simple measure as column values and running total (quick measure) on line value in line and stacked column chart. Date is on shared axix displaying as January-2017 and February-2017 and so on. This shows me correct values of running total on line as shown below:

Running Total-1.PNG

 

However, as soon i switched to the Date hierarchy on shared axis, so i can drill down from year to month and quarter. Then, Line values changed to same as the values on stack as shown below:

Running Total-2.PNG

Can someone please tell what is the problem here? Does the line and stacked column chart visual supports date hierarchy or not? If not then how can i display my running total values on line as in first screenshot but using the date hierarchy?

 

Thanks in advance!

 

Regards,

Amna Anwer

4 REPLIES 4
SivaMani
Resident Rockstar
Resident Rockstar

@amnaanwer,

 

It's working fine for me. Could you plese share some sample data?

Hi SivaMani

 

I am unable to attach pbix file here. I am sharing with you screenshots from my pbix file.

Screenshot-1:

Screenshot-1.PNG

Screenshot-2:

Screenshot-2.PNG

In this file, screenshot-1 shows i am using simple date format i.e 'Month' from CAC sheet on shared axis of line and stacked column chart and it is giving me correct results of running total on line values. But in Screenshot-2 you can see as soon i use the Date Heirarchy from 'Months' sheet, the chart will start showing incorrect results on line values. Kindly look into this.

 

Thanks!

@amnaanwer,

 

Got it. 

 

Cummulative CAC is quick measure. Right?

 

which fileds have used here to calculate Running total

 

running.PNG

Yes, commulative CAC is a quick measure. And the formula for it is:

 

CAC - Cummulative =
CALCULATE(
SUM('CAC'[CAC]),
FILTER(
ALLSELECTED('CAC'[Month]),
ISONORAFTER('CAC'[Month], MAX('CAC'[Month]), DESC)
))

 

Base value here is a column CAC and field is 'Month' which is a date hierarchy in Months sheet.

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.