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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. 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
Community Champion
Community Champion

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.