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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

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