Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi everybody, I'm trying to Filter a virtual table by Ranking position, the number of positions visualized by the users are chosen from a slicer generated from a What-if parameter. This is my Dax expression:
Solved! Go to Solution.
@camilocorralesg , hope Ranking is an independent table with set on number to filter, else use what if parameter
https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-what-if
small change
var agentss = filter(SUMMARIZE(ALL(fct_hotel_revenue),[agent],"__Rank",[Rank], "Income", [Income]), [__Rank] <= <= SELECTEDVALUE(Ranking[Ranking]) )
var agentss___ = SELECTCOLUMNS(agentss, "agent", [agent])
var filterss =
RETURN
CALCULATE([Income], FILTER(fct_hotel_revenue, fct_hotel_revenue[agent] IN agentss___))
Thanks!
@camilocorralesg , hope Ranking is an independent table with set on number to filter, else use what if parameter
https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-what-if
small change
var agentss = filter(SUMMARIZE(ALL(fct_hotel_revenue),[agent],"__Rank",[Rank], "Income", [Income]), [__Rank] <= <= SELECTEDVALUE(Ranking[Ranking]) )
var agentss___ = SELECTCOLUMNS(agentss, "agent", [agent])
var filterss =
RETURN
CALCULATE([Income], FILTER(fct_hotel_revenue, fct_hotel_revenue[agent] IN agentss___))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
12 | |
11 | |
10 | |
9 |
User | Count |
---|---|
18 | |
14 | |
14 | |
13 | |
12 |