Forum Discussion
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.
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
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
- amitchandak
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))
- e_jFrequent Visitor
amitchandaksorry for stupid question but what do I do with these measures once created?
- AnonymousNot applicable
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