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
Odyssey
Frequent Visitor

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
v-shex-msft
Community Support
Community Support

Hi @Odyssey ,

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

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.