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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Chirag_4370
New Member

Total Bar in Hierarchical Bat Chart

I'm trying to get display Sub total and Grend Total on bar chart.

2 REPLIES 2
Anonymous
Not applicable

Hi @Chirag_4370 ,

In order to better understand your demands and give the right solution, could you please provide some more specific information? such as your desensitized example data and a screenshot of your desired results?

 

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@Anonymous Thank You fow show interest. 

 

chart cut.png

Data Model.png

Values for "Total" derived by DAX: 

Val+Total = 
VAR total = CALCULATE(SUM(Data[Val]), ALLSELECTED('Data'))

RETURN
IF(
    SELECTEDVALUE('Date'[DateText]) = "Total" || SELECTEDVALUE(Cat[Cat]) = "Total",
    total,
    SUM(Data[Val])
)

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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