The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello. I have two tables. First has product id and appropriate value, while the second has countries which have made the trade. So if I select one product the second table shows countries which have also exported the selected product. Now I want a filter that shows values greater than which is input by the user. for example, if the user wants to see total values for each product greater than 10 mln $ so minimum value in the first table must be 10. How can I create that type of filter?
hi @Anonymous
For your case, you need to create a parameter for a slicer, you could just use what if parameter to get it.
https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-what-if
Then use this parameter measure as a conditional as below:
Measure = SUMX(FILTER(VALUES('Table'[product id]),[Total values]>[Parameter Value]),[Total values])
If you still have problem, please share your sample pbix file and your expected output.
Regards,
Lin
@Anonymous , Assumed you have used a what if parameter, then you can create a measure like this
measure =
var _max = maxx(allselected(slicer),slicer[paramvalue]) //what if
return
Sumx(Values(Table[product]), if(Sum(Table[Value])>_max,Table[Value],blank()))
Link -https://docs.microsoft.com/en-us/power-bi/desktop-what-if
hi @Anonymous, You will not be able to create slicers using measures in Power BI. But if you want to build it using a direct numeric column - you can use the approach as seen in the screen grabs
Please mark the post as a solution if my comment helped with solving your issue. Thanks!
Proud to be a Super User!
@Anonymous Hi in this case you will need to create a calculated table like belwo for two slicer values
Step 1:
Proud to be a Super User!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
80 | |
80 | |
47 | |
40 |
User | Count |
---|---|
152 | |
110 | |
64 | |
64 | |
57 |