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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Adrian_A
Frequent Visitor

DAX String to define Blanks

So,

 

I'm new to Power Bi and that includes Dax. I am starting to understand strings that are predefined but need some help with a logical return of the table filtered. What i am trying to express in a Dax is below:

 

 See table All columns but filters based on Blank Rows in specific column. I don't know if this would be considered a measure, calculate or a filter if that's possible.

This is what i think makes since?? (below is not DAX just a theory i'm hoping someone can make since of)

 

Filter Table = How many([Column],Jobs1, has [Column],Exteriors Approved3.[Filter Table].[Blank],Rows Only in [Column],Exteriors Approved3))

 

The goal is to see only the rows with Blanks in a column(Exteriors Approved) but, still see all other data for same rows across all columns

So Columns: how many (Jobs,1) has (Exteriors Approved,3) with BLANK Rows = Filtered Table                               

 

Table before Filter

 | Jobs1  | Data 2 |Exteriors Approved3 |Data4 |Data5|

   X                X                     X                    X          X    

   X                X                  BLANK                         X      

   X                X                     X                                      

 

Table After :

| Jobs1  |  Data2 |   Exteriors Approved3 |   Data4 |  Data5|

 

   X              X                   BLANK                                  X    

 

I hope that makes since and any help is greatly appreciated😓 

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

Hi, @Adrian_A ;

You could create a measure as follow:

Measure = COUNTROWS(FILTER('Table',[Exteriors Approved3]=BLANK()))

The final show:

vyalanwumsft_0-1664161609626.png


Best Regards,
Community Support Team _ Yalan Wu
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

5 REPLIES 5
Adrian_A
Frequent Visitor

Thanks for the assist!

I blieve i am still missing somthing, can i please provide a sample? It seems when i run the string accross my table it stll returns the entire tabel because it is still refrencing the rows with data in the cell.

Adrian_A_0-1664198368648.png

 

 

 

Again, thanks so much for the assist !!

Disregard! this worked!!

 

Please provide sanitized sample data that fully covers your issue.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

v-yalanwu-msft
Community Support
Community Support

Hi, @Adrian_A ;

You could create a measure as follow:

Measure = COUNTROWS(FILTER('Table',[Exteriors Approved3]=BLANK()))

The final show:

vyalanwumsft_0-1664161609626.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

you are describing standard DAX functionality

 

FILTER(TABLE,[column]=BLANK())

 

or you can use ISBLANK([column])  if you're adventurous.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Fabric Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors