The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I am looking for a measure to show the values of selected value from a slicer plus one of the non selected value.
This is a sample data to explore:
Fruit | Feedback |
Apple | Good |
Orange | Good |
Grape | Better |
NA | NA |
I need to show the values from Feedback column based on slection in a slicer.
Here the slicer is Fruit Column.
The scenario is , user will select only one value from the Fruit column, eg, Apple is selected.
so the value will be displayed as "Good".
But I want a measure to show values from Apple plus NA, but user only selected Apple.
Currently my measure is
Regards
Renji
Solved! Go to Solution.
Hi @renjithpbi ,
Maybe you can modify your formula like below:
Measure =
VAR SelectedFeedback = CONCATENATEX(
VALUES('Table'[Feedback]),
'Table'[Feedback],
", "
)
VAR NAFeedback = CALCULATE(
MAX('Table'[Feedback]),
'Table'[Fruit] = "NA"
)
RETURN
IF(
ISBLANK(SelectedFeedback),
NAFeedback,
SelectedFeedback & ", " & NAFeedback
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @renjithpbi ,
Maybe you can modify your formula like below:
Measure =
VAR SelectedFeedback = CONCATENATEX(
VALUES('Table'[Feedback]),
'Table'[Feedback],
", "
)
VAR NAFeedback = CALCULATE(
MAX('Table'[Feedback]),
'Table'[Fruit] = "NA"
)
RETURN
IF(
ISBLANK(SelectedFeedback),
NAFeedback,
SelectedFeedback & ", " & NAFeedback
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Yes,
Apple, NA
Orange, NA
Grape, NA
is it always going to be NA the additional value?
Proud to be a Super User!
User | Count |
---|---|
81 | |
74 | |
42 | |
30 | |
28 |
User | Count |
---|---|
108 | |
96 | |
53 | |
48 | |
47 |