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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
markzuev6
Regular Visitor

Data labels creation issue

Hello,

 

I was 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-1728377394868.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])
        )
    ) * 1000
) & "%"

 

 

 

Thank you

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @markzuev6 

Based on your description, I created the following dataset:

vjianpengmsft_0-1728443138492.png

vjianpengmsft_1-1728443151487.png

The relationship between them is as follows:

vjianpengmsft_2-1728443189121.png

Based on the expression you provided, you want to find the current [Dynamic GRP] as a percentage of the current year (clearing 'Dynamic variables (TopN)' [Player type] and Data [Channel group]). 

Create a measure using the following DAX expression:

Measure = ROUND(
    DIVIDE(
        [Dynamic GRP],
        CALCULATE(
            [Dynamic GRP],
            ALLSELECTED('Dynamic variables (TopN)'[Player Type]),
            ALLSELECTED(Data[Channel Group]),
            VALUES(Data[Year])
        )
    )*100 , 0
)/100

The visual settings are as follows:

vjianpengmsft_3-1728444525227.png

If you still have any doubts, you can clarify and clearly describe your expected results in the follow-up along with examples.

 

 

 

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi, @markzuev6 

Based on your description, I created the following dataset:

vjianpengmsft_0-1728443138492.png

vjianpengmsft_1-1728443151487.png

The relationship between them is as follows:

vjianpengmsft_2-1728443189121.png

Based on the expression you provided, you want to find the current [Dynamic GRP] as a percentage of the current year (clearing 'Dynamic variables (TopN)' [Player type] and Data [Channel group]). 

Create a measure using the following DAX expression:

Measure = ROUND(
    DIVIDE(
        [Dynamic GRP],
        CALCULATE(
            [Dynamic GRP],
            ALLSELECTED('Dynamic variables (TopN)'[Player Type]),
            ALLSELECTED(Data[Channel Group]),
            VALUES(Data[Year])
        )
    )*100 , 0
)/100

The visual settings are as follows:

vjianpengmsft_3-1728444525227.png

If you still have any doubts, you can clarify and clearly describe your expected results in the follow-up along with examples.

 

 

 

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors