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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How to display a default value from a list of values

Hi,

Is there any way to get the default value to show from a set of values?

I am using Switch statemet, but it's not fetching me the exact result I am looking for.Kindly let me know if any more information

is required for anlysis.

 

Thanks,

Ravi

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous,

 

>>I am using Switch statemet, but it's not fetching me the exact result I am looking for.Kindly let me know if any more information is required for anlysis.

Switch function contains the default value, you can write the default value at the end of the formula.

 

For example:

 

Measure:
Swith Statement = SWITCH(MAX(source[Value]),1,"first",2,"second","default")

Calculate column:
Swith Statement = SWITCH(source[Value],1,"first",2,"second","default")

 

 

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Hi Xiaoxin,

Thanks for your update, Please find the below link for the actual issue that I am facing, hope this helps you for the understanding.

 

https://community.powerbi.com/t5/Desktop/Help-With-Formula-to-get-default-values/td-p/143600

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.