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
Will90
Frequent Visitor

Measures in donut chart visualisation

Hi,

I have a report that I'm creating to show the current week and then the previous 4 weeks using the measure below but changing -1 to -2 and so on.

 

Weeks-1 =

var selectedweek =SELECTEDVALUE('Dashboard Data'[Full Date])
var week = LOOKUPVALUE('Dashboard Data'[Week],'Dashboard Data'[Full Date],selectedweek)-1

return

CALCULATE(SUM('Dashboard Data'[Accident Total]),ALL('Dashboard Data'[Full Date]),'Dashboard Data'[Week]=week)

 

The current week I can put into a donut of Legend and Values, using compliant or not complaint 1 & 0 for red and green. However I cannot do this for the measures week-1, week-2, week-3 and week-4? I can only put the value into Values and not Legend to change the colour of the donut?

4 REPLIES 4
Will90
Frequent Visitor

Hi,

 

So i want to present the last 4 weeks in the donuts, but unable to place the measure into Legend - see pictures below.

 

1.PNG2.PNG3.PNG4.PNG

Will90
Frequent Visitor

Can anyone help?

Hi Will90,

 

I'm afraid measures could not be used as legend, please use calculate column instead.

 

Regards,

Jimmy Tao

v-yuta-msft
Community Support
Community Support

Hi Will90,

 

Could you share some sample data and clarify more details about your issue for further test?

 

Regards,

Jimmy Tao

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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