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

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

Reply
Anonymous
Not applicable

how to update dimension value based on measure value

Hi All,

I want to show the final output in a pie chart 

  • Dimension: % bucket 
  • Measure: count (distinct ID)

I have two tables "Actual Hour Table" and "Target Hour Table".

 

Actual Hour Table:

Screenshot_1.png

Target Hours Table:

Screenshot_2.png

 

i have created Two Measure 

 
Target Achievement % = sum(Table1[Work Hour])/SUM('Target Hour'[Target Hour])
%bucket =
IF (
    Table1[Target Achievement %] = 1,
    "100%",
    IF (
        [Target Achievement %] < 1
            && Table1[Target Achievement %] >= 0.75,
        "75% to 99%",
        IF (
            [Target Achievement %] < 0.75
                && Table1[Target Achievement %] >= 0.5,
            "50% to 74%",
            IF (
                [Target Achievement %] < 0.5
                    && Table1[Target Achievement %] >= 0.25,
                "25% to 54%",
                IF (
                    [Target Achievement %] < 0.25
                        && Table1[Target Achievement %] >= 0,
                    "0% to 24%",
                    ">100%"
                )
            )
        )
    )
)
finally, I show the result like below image
 
Week + Employee ID view

Screenshot_3.png

Employee ID view

Screenshot_4.png

 

i want to show this result in Pie Chart 

 

if i select "04/05/2019" i want to show this result

Screenshot_5.png

 

if I select "04/12/2019" I want to show this result
Screenshot_6.png

 

if I select both dates,I want to show this result


Screenshot_7.png

 

Data 

WeekEndDateEmpIDWork HourWeekly Target
4/5/2019E12540
4/12/2019E12540
4/5/2019E23040
4/12/2019E25040
4/5/2019E34040
4/12/2019E34040
4/5/2019E42040
4/12/2019E4040
2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

Measures can't be placed to Legend, Details and Values field in a pie chart. The workaround is to convert measure to calculate column. 

Capture.PNG 

You can refer to the attachment.

 

Community Support Team _ Jimmy Tao

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

Anonymous
Not applicable

Thanks for response

 

i cant achieve below result if I use calculate column.

 

i have selected both weeks so "target achievement percentage" & "%bucket" changed based on selection

Screenshot_7.png 

Screenshot_4.png

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.