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

Tables and Filtering

Hello,

 

I'm trying to create noumerous charts that depend only on NON Blank values, is there any way to achieve that with DAX? To filter the main table before making the chart. My dataset has 5 columns

 

Code (id - key) (no blanks)

eShop (YES, NO or blank)

Sales (Number or blank)

Category1 (1,2,3 or blank)

Category2 (1,2,3 or blank)

 

One of the charts will be how many % have eShop and how many don't. So, I want to first take the original table, filter out the rows that have blank in the eShop column and then create the chart. The same idea is for all the other charts that I want to create. Any ideas?

 

1 REPLY 1
amitchandak
Super User
Super User

@alex_smith , One is to use a visual level filter and remove blank

 

second a measure like

calculate(

divide(calculate(Count(Table[Code]), filter(Table, [eShop] ="Yes")), Count(Table[Code])) , filter(Table,not(isblank([eShop))) )

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

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.