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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
TomasGazsi
Frequent Visitor

It is possible to hide the column (measured/calculated) for the first year of comparison?

Hi, 

first of all, I am a beginner in Power Bi. Therefore I apologize if this is a simple question. 

I need compare 2023y. with 2024y. So I use metrix:

 

 

I need only green rectangle. Year 2023 is first year of measured. 

TomasGazsi_3-1716882702001.png

 


Properties of metrix. Date is CALENDAR() table with releationship to main table:

TomasGazsi_2-1716882333328.png


Calculated column Mezirocni rozdil v % - DAX syntax:

 

pocitany_medzirocny_rozdiel_v_percentach =
IF(
    ISFILTERED('Tabl_kalendar'[Date]),
    ERROR("Rychlou míru časového měřítka je možné seskupovat nebo filtrovat jenom pomocí hierarchie data poskytnuté službou Power BI nebo primárního sloupce dat."),
    VAR __PREV_YEAR =
        CALCULATE(
            [pocitany_CelkemBezDPH],
            DATEADD('Tabl_kalendar'[Date].[Date], -1, YEAR)
        )
    RETURN
        DIVIDE([pocitany_CelkemBezDPH] - __PREV_YEAR, __PREV_YEAR)
)

 

Is possible to hide (red) column in metrix? Or it is not possible? Or is there some workaround solution? 

Thanks for any advice. 

1 ACCEPTED SOLUTION
v-jialongy-msft
Community Support
Community Support

Hi @TomasGazsi 

 

Unfortunately, there is no such an visibility option that supports to conditionally hide/show column in Matrix. You can conditionally control whether or not the value is displayed by writing a measure, but even then the column will still be there.
Reference post : Solved: How can i hide Column ? - Microsoft Fabric Community

 

 

 

 

 

Best Regards,

Jayleny

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-jialongy-msft
Community Support
Community Support

Hi @TomasGazsi 

 

Unfortunately, there is no such an visibility option that supports to conditionally hide/show column in Matrix. You can conditionally control whether or not the value is displayed by writing a measure, but even then the column will still be there.
Reference post : Solved: How can i hide Column ? - Microsoft Fabric Community

 

 

 

 

 

Best Regards,

Jayleny

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi, 

thank you for your response. I assumed that it is as you write. 

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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