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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Calvin
Regular Visitor

Filter

Hi Community, 

 

I am trying to filter out some values by using DAX.

 

Column A   Column B

A                   (blank)

B                        0

C                        1

D                        2

 

How do I filter out (blank) and 0 in column B. 

 

Thanks. 

 

Thanks 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Calvin . If you need a new measure

 

C = calculate(Sum(Table[Column B]), Filter(Table, Table[Column B] <>0  && not(Isblank(Table[Column B]) ) ) )

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Calvin . If you need a new measure

 

C = calculate(Sum(Table[Column B]), Filter(Table, Table[Column B] <>0  && not(Isblank(Table[Column B]) ) ) )

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.