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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
brettg
Helper II
Helper II

Use measure as value in visual e.g pie chart

Hi All,

 

Is it possible to use measures as values in visuals such as pie charts, scatter graphs..

 

I have created measures for the latest test and latest result of each user, and these update when I change the date slider.

 

As you can see in the image below, I can get these to display in table format. However, it won't let me add my measures as values to other visuals such as the pie chart.

 

Does anyone know why this is?

 

Thanks in advance

Capture7894.PNG

 

 

 

3 REPLIES 3
Greg1231
New Member

Hi, I'm having same problem any Idea how to solve this ? 
My measurment:

TotalSprintsMeasure =
VAR ActiveSprint =
    ADDCOLUMNS(
        ALL(SprintNames),
        "SprintEffort", SWITCH(
            TRUE(),
            [Sprint] = "1" && [1ActiveSprint] <> BLANK(), CALCULATE(SUM('RoT'[1SprintEffort]),'RoT'[Title] = SELECTEDVALUE('RoT'[Title]))
       
            // Add all other phase measures here
        )
    )
VAR FilteredSprint = FILTER(ActiveSprint, [SprintEffort] <> BLANK())
VAR TotalEffort = SUMX(FilteredSprint, [SprintEffort])
RETURN
    FORMAT(TotalEffort, "0.0")
In the table I get results but can't show that in PBI donut 

v-juanli-msft
Community Support
Community Support

Hi @brettg

I can't reproduce your problem, how do you calculate the measure?

 

11.png

Best Regards

Maggie

Hi Maggie,

 

Thank you for taking the time to look into this for me.

 

This is the measure I am currently using to get the latest result per user:

 

Latest Result =

VAR User = SELECTEDVALUE('Table'[User])

VAR MaxTest = MAXX(
KEEPFILTERS(VALUES('Table'[User])),
CALCULATE(MAX('Table'[Test Date]))
)

RETURN

CALCULATE(SELECTEDVALUE('Table'[Result]), ALLSELECTED('Table'),'Table'[User] = User, 'Table'[Test Date] = MaxTest)

 

I'm assuming I need a True or False IF statement now to bring back if its the latest test?

 

Many Thanks,

Brett

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.