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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Remove filters from text column based on slicer selection

Hi All

Below table shows:

2019 COT - total Volume for 2019 but if 2023 is selected in the filter then YtD 2019
COT (Period Covered) - Sum of Volume for years selected in a filter.

 

I face an issue when 2023 is selected in a filter that sum of 2019 COT is not equal sum of all rows shown in a table. It is because rows which have data for 2019 and don't have for 2023 are not shown in a table but are included in a total.

 

Does anyboady know how to show all rows in a table when 2023 is selected in the filter?

 

Thanks in advance!!

 

Newuser13_0-1678104496705.png

 

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Not very clear, but you can use the option on the right click of group bys of visual - Show Item with no data

 

Show item with No data new.pngShowItemwithoutdata.JPG

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks @amitchandak  but it didn't help.

 

2019 COT = CALCULATE([COT (Period Covered)], 'Weekly COT_Database'[Year] = 2019, DATESYTD(Date_Lookup[End of Week Date]))

COT (Period Covered) = calculate(SUM('Weekly COT_Database'[Volume]), DATESYTD(Date_Lookup[End of Week Date]))
 
These are the measures I use. First measure should always show Volume for 2019. The second measure should show Volume for a period selected in a slicer. When I select 2023 in a slicer the first measure total is correct but the sum of all rows shown in a table is not matching total. It is becuse some rows have data for 2019 but don't have for 2023.
Hope now it is more clear.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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