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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Analitika
Post Prodigy
Post Prodigy

How to hide items in visual in Power BI

Hello,

 

I wonder if possible some items in visual legend as some data is empty, I have a measure which calculates data by 2024 but 2024 is not existing and that items exists in visual. So is possible to hide not interesting items in visual? 

Visual looks like this:

Analitika_0-1680077360589.png

And visual pane:

Analitika_1-1680077386466.png

 

Any workarounds?

 

12 REPLIES 12
Fayaz_1ly
New Member

Try using selection panel from View ribbon in Power BI

Analitika
Post Prodigy
Post Prodigy

It is not clear actually for me.

bhelou
Responsive Resident
Responsive Resident

Solution for better dataset and to be more dynamic : 

1 - go to your dates table 
2 - Create a new column with this measure : 

Future_Day : = IF(

'*Dates'[Date]

>TODAY(),TRUE(),FALSE()) 
3 - drop  the Future_Day measure in filters - Filters on all pages  - then select False : here it will take all the dates of the table within the values of today and backwards ) 



Kindly  accept as a soulution and a kudo is greatfful . 

12123.png

Just false I see in filter.

bhelou
Responsive Resident
Responsive Resident

Kindly share some sample of the PBIX file to see what is happeninig with you 

I have sensitive data

bhelou
Responsive Resident
Responsive Resident

Dear , 

Check your dates table , do you have the year 2024 inside it ? 

No it doesn't that table in which I added column has years until 2023. Measure EUR / h 2024 checks if table contains 2024 year.

bhelou
Responsive Resident
Responsive Resident

Ok got you , please if you can share the measure to see how we can remove the blanks from it . 


Pardavimai santykis_h_k1_kiek_2024 = 
var metu_uzdarymo_pozymis=[ABC_Metu_uzdarymo_ZU0_KOD]
var valandos= CALCULATE([kiekis_talble2],FILTER('view_ziniarast_cp','view_ziniarast_cp'[year]=2024))
/*var savikaina= sumx(FILTER('DBA view_DidknObj', RELATED('Sas kod unik BRIDGE'[POZYMIAI Veiklu (Excel AUTO)])="Savikaina"&&Find(metu_uzdarymo_pozymis,'DBA view_DidknObj'[ZU0_KOD],,0)=0), 'DBA view_DidknObj'[SUM_DEB]-'DBA view_DidknObj'[SUM_CRE])*/
return


if([kiekis_talble2]=BLANK(),"",DIVIDE([BP Pardavimai DK+-50],valandos))

year column is from table

bhelou
Responsive Resident
Responsive Resident

Hello , Try to modify the return statement after devide , add this  and let me know if it works : 

IF(ISBLANK(DIVIDE([BP Pardavimai DK+-50],valandos)), BLANK(), DIVIDE([BP Pardavimai DK+-50],valandos))




bhelou
Responsive Resident
Responsive Resident

Hello , 

1- In the filter of the visual , you can filter out the year or the blanks 
2- make a measure with a variable to filter out the blanks , ( share the measures here to help you with it ) 
3- Make your date table more dynamic ( add a new column and select the date you are standing on , if it is more then make true or false ( example : today is 29 March , : Measure in the column of the dates table : Future_Day : = IF(

'*Dates'[Date]

>TODAY(),TRUE(),FALSE()) 

in this measure you will have true or false , then in the report in the filters pane put it in all pages then select the false ( here it will be dynamic date on a daily base refresh ) 

Please accept as a soulution and a kudo is greatfful . 

Regards  , 





Regards , 


Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors
Top Kudoed Authors