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
aellison
Helper I
Helper I

Calculate by month (totaling in 100% stacked column chart)

 

I am trying to display the Month totals in the ToolTip for the below chart. This is a 100% Stacked Column Chart with [Fiscal Month] on the Axis, [Lag Time Group] on the Legend and [Count of Appointments] as the value. What I would like to show is the Total for each month, along with the default of Total by Month for each lag time group on the ToolTip, but I'm not sure what measure to create to do that. Example: The Total Lag Time in the ToolTip for September below should be 2335

 

Any thoughts?

 

Capture.PNG

Thank you in advance,

2 ACCEPTED SOLUTIONS
Sean
Community Champion
Community Champion

@aellison I've been trying but can't duplicate your results.

For me both ALL ( Table[Legend Column] ) and ALLEXCEPT ( Table, Table[Legend Column] ) both work.

The only thing I could think of is to try COUNTROWS which also works!

COUNT only counts numbers and dates COUNTROWS picks up everything! Smiley Happy

 

 

Total Lag Time = CALCULATE ( COUNTROWS ( 'Table1' ), ALL ( 'Table1'[Lag Time Group] ) )

 

 

Tooltip Measure.png

 

 

 

 

View solution in original post

I ended up creating a custom column for each of the Lag Time Groups and putting each of those columns in to the Value field. This gave me the ToolTip results that I needed. Thank you for your time.

View solution in original post

6 REPLIES 6
mmanwaring
Resolver I
Resolver I

Hi

You need a calculate for count of appointment lag times with all days.

something like this CALCULATE([Count of Appointments], All(Table[lag time group])) for example

Regards

Mike

 

I'm still getting the same results with the following expression:

 

Total Lag Time =
               CALCULATE(
                         COUNT('Table1'[Appointment Lag Time])
                         , ALL('Table1'[Lag Time Group])
                        )

Sean
Community Champion
Community Champion

@aellison This should work...

 

Total Lag Time =
CALCULATE (
    COUNT ( 'Table1'[Appointment Lag Time] ),
    ALLEXCEPT ( 'Table1', 'Table1'[Fiscal Month] )
)

 

When doing that one, it's a strange result. Doing the ALLEXCEPT for Fiscal Month gives me a total for all the green sections when hovering over any one of the green sections, If I change it to ALLEXCEPT for Lag Time Groups, I get the exact same result (total for all the green sections). I just need it to pivot the other axis ...

Sean
Community Champion
Community Champion

@aellison I've been trying but can't duplicate your results.

For me both ALL ( Table[Legend Column] ) and ALLEXCEPT ( Table, Table[Legend Column] ) both work.

The only thing I could think of is to try COUNTROWS which also works!

COUNT only counts numbers and dates COUNTROWS picks up everything! Smiley Happy

 

 

Total Lag Time = CALCULATE ( COUNTROWS ( 'Table1' ), ALL ( 'Table1'[Lag Time Group] ) )

 

 

Tooltip Measure.png

 

 

 

 

I ended up creating a custom column for each of the Lag Time Groups and putting each of those columns in to the Value field. This gave me the ToolTip results that I needed. Thank you for your time.

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.