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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
lliu08
Helper I
Helper I

Filter a measure base on slicer

Hello Community, 

 

I have a measure that calculates the cumulative revenue of a project. 

 

Cumulative Project Revenue =
CALCULATE(
SUM(Project_Profit[Revenue]), FILTER(ALL(Project_Profit),
Project_Profit[Accounting_Date] <= MAX ('Date Table'[Date])
),GROUPBY(ProjectList,ProjectListr[ProjectDescription])
)
 
I need a slicer bar and when I drag the bar from, let's say minimum project revenue of $30,000 - so in this case, I drag the bar to a minimum $30,000
 
then I want the table that shows  originally
 
ProjectDescriptionCumulative Revenue
A$45,000
B$20,000
C$30,000
D$12,000

 

to 

ProjectDescriptionCumulative Revenue
A$45,000
C$30,000

 

 

when the slicer is being dragged to $30,000.

 

Please let me know if this is possible, thank you. 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@lliu08 , You can have what if parameter and use its min and max value as an additional filter in formula

https://docs.microsoft.com/en-us/power-bi/desktop-what-if

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

  • I have a calculated measure which consists percentage value. I just want to use the percentage range for the visualization. How can I make it using switch case statement.
amitchandak
Super User
Super User

@lliu08 , You can have what if parameter and use its min and max value as an additional filter in formula

https://docs.microsoft.com/en-us/power-bi/desktop-what-if

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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