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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register 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
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.