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
Mason002
New Member

Selected Value and If Statement

F9A92F1C-8F50-4C49-B7A8-8FD50C24DD8E.jpeg

 I want to have the state selected show up as a title for the report, but if there is no selected state, I want it to just say USA. Any help would be greatly appreciated, as I have just begun to use power BI

1 REPLY 1
Arul
Super User
Super User

@Mason002 ,

try this,

Selected country =
IF (
    HASONEVALUE ( financials[Country] ) = TRUE (),
    MAX ( financials[Country] ),
    "USA"
)

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


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! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

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.

Jan NL Carousel

Fabric Community Update - January 2025

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