Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
renjithpbi
Frequent Visitor

Dax formula for Selected Value plus one of non-selected value

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:

FruitFeedback
AppleGood
OrangeGood
GrapeBetter
NANA

 

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 

Measure = CONCATENATEX(VALUES('Table'[Feedback]),  'Table'[Feedback] , ", ")
 
Thanks in Advanceselected value1.PNG
I am expecting like this
 
renjithpbi_0-1737478404827.png

Regards

Renji

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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
)

vkongfanfmsft_0-1737599592809.png

vkongfanfmsft_1-1737599603883.png

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.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

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
)

vkongfanfmsft_0-1737599592809.png

vkongfanfmsft_1-1737599603883.png

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.

renjithpbi
Frequent Visitor

Yes, 

Apple, NA

Orange, NA

Grape, NA

vanessafvg
Super User
Super User

is it always going to be NA the additional value?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.