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

Conditional Selected value columns

I am working on a report  which has to display a projected value column for this year and  no Projected value column for the previous years.

 I have used  Selected values to be able to derive the columns that need to be be displayed, I also have a measure called  year indicator. I want the  column  Projected usage to display when  year indicator is 1( ie current year) and  not display when the  indicator is 0( previous years).

 

Display current year = {
    ("Display Subscription", NAMEOF('vw_PBI_Overages'[Display Subscription]), 0),
    ("Display Usage", NAMEOF('vw_PBI_Overages'[Display Usage]), 1),
    ("Display Available", NAMEOF('vw_PBI_Overages'[Display Available]), 2),
    ("Display 12 Month Projection", NAMEOF('vw_PBI_Overages'[Display 12 Month Projection]), 3)
}

 

 

 Here is my code below which gets me the 4 columns.  I  need to be able to  display only first 3 columns when  Year indicator is not 1.

Thanks.

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

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.