Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I work in healthcare so I can't provide data for this question.
I am trying to set up a tab in Power BI desktop with Slicer A, Slicer B, and Slicer C one for each row of cards. The slicers would have types of calculations to chose from, for example cost of the case, the time it took, or the profit from the case. I want to be able to chose one of those calcs for each line cards, find the account with the highest amount for that type of figure (for eaxmple the highest case cost) Then the cards in each row would display certain stats for that account. So for the account with the highest costs the row with Slicer A can be set to Cost and for the account with the highest cost it will display the cost for that account, the time it took, the reimbursement and net income for that same account.
The problem I am having is that the cards for the first row of the report don't show account and figures for the account with the highest amount in that calculation on the slicer. Instead it shows the account that I would get if I left the slicer blank. All the other slicers work the way I want. I tried to use the edit interactions option to make sure the other slicers are not controlling the slicer and cards for the first row, but that does not make a difference.
Here is the measure I use in each card:
Solved! Go to Solution.
@BaldAccountant, try this code, and if you encounter any issues, let me know.
Max Acct DYN =
VAR SelectedMeasure = SELECTEDVALUE(SlicerTable[SlicerColumn])
VAR MaxAccount =
MAXX(
TOPN(1,
FILTER(
ALL(DATA3),
[Analysis Measure] = SelectedMeasure
),
[Analysis Measure],
DESC
),
DATA3[PATIENT NUMBER]
)
RETURN
CALCULATE(
[Analysis Measure2],
DATA3[PATIENT NUMBER] = MaxAccount)
@BaldAccountant, try this code, and if you encounter any issues, let me know.
Max Acct DYN =
VAR SelectedMeasure = SELECTEDVALUE(SlicerTable[SlicerColumn])
VAR MaxAccount =
MAXX(
TOPN(1,
FILTER(
ALL(DATA3),
[Analysis Measure] = SelectedMeasure
),
[Analysis Measure],
DESC
),
DATA3[PATIENT NUMBER]
)
RETURN
CALCULATE(
[Analysis Measure2],
DATA3[PATIENT NUMBER] = MaxAccount)
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |