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

Two What-If parameters working together

I have created two what if parameters to be able to show the top N (5, 10, 15 etc) ranking and then another paramater that filters out any sales that are below a certain threshold.

e_j_2-1627636668656.png

 

I would expect the graph to still show the top N but instead the minimum number of sales parameter overrides the ranking. For example the below graph should be showing 20 bars but instead is only showing 6

e_j_3-1627636688202.png

 

Is there a way to get the parameters to work correctly together?

So far I have tried the interactions and syncing but can't seem to get it to work correctly.

Thanks in advance.

 

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @e_j

Did the folders create based on the same what-if parameter table? AFAIK, current power bi not able to get different selections from the filters with same data source filed.

I'd like to suggest you create two what-if parameter tables and use them to create slicer/filters, then you can use DAX functions to extract the selection from two tables.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
e_j
Frequent Visitor

@amitchandaksorry for stupid question but what do I do with these measures once created?

amitchandak
Super User
Super User

@e_j , Try measures like

 

//use sales filter first

M1= CALCUALTE(sumx(filter(VALUES(Data[Customer]), [sales] >= selectedvalues(salesparam[salesparam])),[sales]))

 

 

//Then filter TOPN

M2 = CALCULATE( [M1],TOPN(selectedvalues(Rankval[Rankval]),allselected(Data[Customer]),[M1],DESC))

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.