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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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 PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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