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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
GulianiG
Helper II
Helper II

Formula not working as soon as I select 2 or more values

Hi Experts,

My formula below is not working as soon as I select 2 or more values from Segment[Sub-Group] in a slicer

GulianiG_0-1674151003488.png

Please suggest, thanks

 

1 ACCEPTED SOLUTION
GregMarbais
Kudo Collector
Kudo Collector

Hey @GulianiG SelectedValue only returns a value when there's a single value in the selected column. Here's an article on it: https://dax.guide/selectedvalue/
Depending on what you're doing, you may just need to flip how you do the evaluation
Instead of the SelectedValue line you could do OR("Male" IN Segment[Sub-Group],"Female" IN Segment[Sub-Group]),
But that may depend on what you're trying to accomplish.

View solution in original post

1 REPLY 1
GregMarbais
Kudo Collector
Kudo Collector

Hey @GulianiG SelectedValue only returns a value when there's a single value in the selected column. Here's an article on it: https://dax.guide/selectedvalue/
Depending on what you're doing, you may just need to flip how you do the evaluation
Instead of the SelectedValue line you could do OR("Male" IN Segment[Sub-Group],"Female" IN Segment[Sub-Group]),
But that may depend on what you're trying to accomplish.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.