cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SA9876 Frequent Visitor
Frequent Visitor

Measure to filter based on Slicer

Hi,

 

What I'm hoping to do is have a measure which filters based on the slicer. It gets a little more complicated as what I am hoping is for a formula to forecast an end of year figure based on the actual results plus the budget results.

 

I can get measures working which calculate the YTD Actual result and the YTD Budget result but I can't work out how to combine them with one measure. I've shown a manual calculation of the sort of result I'd be looking for below.

 

Capture.PNG

 

I want the end user to be able to pick Period 6 (I have it currently just showing the number) and this would show Actuals Filtered for Period =< 6 and Budget for >6. 

 

Is this possible?

 

Thanks!

3 REPLIES 3
tringuyenminh92 New Contributor
New Contributor

Re: Measure to filter based on Slicer

Hi @SA9876,

 

Why dont you create one more measure with If condition? 

 

measureAlias= if(period<=6, [YTD Actuals] , [YTD Budget])

or

measureAlias= if(max(period)<=6, [YTD Actuals] , [YTD Budget])

 

not sure, but let's try it

SA9876 Frequent Visitor
Frequent Visitor

Re: Measure to filter based on Slicer

Hi @tringuyenminh92

 

Sadly this doesn't work, it does select based on the period but it doesn't add up the other values...

 

Thanks for replying so fast!

tringuyenminh92 New Contributor
New Contributor

Re: Measure to filter based on Slicer

Hi @SA9876,

 

Hope you could share a sample data so I could observe to understand your scenario correctly.

 

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 51 members 1,268 guests
Please welcome our newest community members: