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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Cumulative Measures based on other Measures

Hi All,

 

I have a period column where i will have 3 values Quarterly Trend, Weekly Ttrend and Yearly Trend.

10.PNG

 

I created 3 different measures for all these 3 vlues.

11.PNG

 

Now i would like to create another measure which hold the values like if i select Quarterly trend then it need to dosplay quarterly values measure.

if i select Weekly trend then it need to dosplay weekly values measure.

if i select Yearly trend then it need to dosplay Yearly values measure.

 

I want this in a single measure.

 

Thanks in advance

 

1 ACCEPTED SOLUTION
Gordonlilj
Solution Sage
Solution Sage

Hi,

 

You could try creating a measure like below

Measure = 
SWITCH(TRUE(),
SELECTEDVALUE('Table'[Period]) = "Weekly trend",[Weekly values],
SELECTEDVALUE('Table'[Period]) = "Quarterly trend",[Quarterly values],
SELECTEDVALUE('Table'[Period]) = "Yearly trend",[Yearly values])

 

View solution in original post

1 REPLY 1
Gordonlilj
Solution Sage
Solution Sage

Hi,

 

You could try creating a measure like below

Measure = 
SWITCH(TRUE(),
SELECTEDVALUE('Table'[Period]) = "Weekly trend",[Weekly values],
SELECTEDVALUE('Table'[Period]) = "Quarterly trend",[Quarterly values],
SELECTEDVALUE('Table'[Period]) = "Yearly trend",[Yearly values])

 

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.