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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
MaliniBaktha
Helper I
Helper I

tool tip calculate percentage for different categories

Hi , 

 

I am facing an issue, I have 4 types of session volumes in two calendar years and I have displaced the values in the stacked column chart . But when I want to look at percentage of the total it calculates the percentages for two calendar year instead of calculating per calendar year . Is there a tool tip for DAX to percentage for the respective category in the calendar years ?

 

MaliniBaktha_0-1715722741593.png

I would like to see percentage of each color category / total in the respective calendar year 

1 ACCEPTED SOLUTION
Anand24
Super User
Super User

@MaliniBaktha ,
Try this new measure and pull it into tooltip:

%Sales in a Year = 
DIVIDE(
    SUM('TableName'[Sales]),
    CALCULATE(
        SUM('TableName'[Sales]),
        ALLEXCEPT('TableName', 'TableName'[Year])
    ),
    0
)

 

View solution in original post

2 REPLIES 2
MaliniBaktha
Helper I
Helper I

@Anand24 thank you it worked 

Anand24
Super User
Super User

@MaliniBaktha ,
Try this new measure and pull it into tooltip:

%Sales in a Year = 
DIVIDE(
    SUM('TableName'[Sales]),
    CALCULATE(
        SUM('TableName'[Sales]),
        ALLEXCEPT('TableName', 'TableName'[Year])
    ),
    0
)

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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