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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
markzuev6
Regular Visitor

Data Labels Calculation Issues

Hello,

 

I am trying to create data labels showing %, while the chart should show absolute numbers.

 

My current formula works well if I switch the X and Y axis dimensions, but the calculation goes wrong in the current set up. Please advise how the formula should look like. 

 

Here is my chart example:

markzuev6_0-1727350789792.png

My current formula:

Yearly player group SOV label =
ROUND(
    DIVIDE(
        [Dynamic GRP],
        CALCULATE(
            [Dynamic GRP],
            ALLSELECTED('Dynamic variables (TopN)'[Player type]),
            ALLSELECTED(Data[Channel group]),
            VALUES(Data[Year])
        )
    ) * 100, 0
) & "%"

 

 

Thank you

4 REPLIES 4
Kedar_Pande
Super User
Super User

Can you try:

Yearly player group SOV label =
VAR TotalGRP = CALCULATE(
[Dynamic GRP],
ALLSELECTED(Data[Channel group]),
VALUES(Data[Year])
)
RETURN
IF(
TotalGRP > 0,
ROUND(DIVIDE([Dynamic GRP], TotalGRP) * 100, 0) & "%",
"0%"
)

It gives the same result as mine, so not really correct, but thank you

Anonymous
Not applicable

Hi All,
Firslty  Kedar_Pande thank you for your solution!
And @markzuev6 ,Hello, in order to better help you with this issue, would it be convenient for you to provide some sample data or PBIX files? This way I can directly see exactly what MEASURE does and provide more specific advice. Thank you for your understanding and cooperation!
If you are not sure how to upload a pbix file, you can refer to the link below, looking forward to your reply!

How to Get Your Question Answered Quickly - Microsoft Fabric Community

Underlying data for the chart can be seen here GRP DYNAMICS BY GROUPS.xlsx

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.