Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello all,
I am looking to be able to return the max value of a measure based on any value of the measure that filters the switch statement. Basically, what I have is this:
GroupCount =
VAR _1stTable =
CALCULATE(SUM('Table 1'[IncCount]),FILTER([filter statement]))
VAR _2ndTable =
CALCULATE(SUM('Table 2'[IncCount]),FILTER([filter statement]))
VAR _3rdTable =
CALCULATE(SUM('Table 3'[IncCount]),FILTER([filter statement]))
RETURN
SWITCH(
SELECTEDVALUE(RiskAnalysisMetric[Metric]),
"AAA", _1stTable,
"BBB", _2ndTable,
"CCC", _3rdTable
)
The Switch works fine, but I am trying to create a graph with a max line for all metrics. I need to be able to run each iteration of the [Metric], and return the max value from _1stTable, _2ndTable, or _3rdTable, whichever is higher.
Solved! Go to Solution.
Hi @kylewilley
It seems a scenario for field parameters, using them you can show all selections.
Please check this tutorial :
https://www.youtube.com/watch?v=TufnsAxJsjs
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi @kylewilley
It seems a scenario for field parameters, using them you can show all selections.
Please check this tutorial :
https://www.youtube.com/watch?v=TufnsAxJsjs
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
75 | |
54 | |
37 | |
33 |
User | Count |
---|---|
99 | |
56 | |
50 | |
43 | |
40 |