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
praveenpasila
Advocate IV
Advocate IV

Measure clarification

Hi,

 

Can some one please help me understand the following.

 

I have a column with Y and N values and I have created a measure as I want to use it in different table.

 

Flag Measure = IF(MAX(Table2[Flag]) = "Y",1,0)
 
When I add it to the view it is giving me blank rows seems like it is computing for all combinations..
 
please find below screen shots
 
Before adding the masure
praveenpasila_0-1677595298171.png

 

After adding measure

 

praveenpasila_1-1677595334251.png

 

I can simply filter using Sum of Amt is not blank. but in my real time data there may be valid nulls where Amount is really null and gets excluded.

 

can some one please suggest if we can correct the behavior or help me understand why the behaviour.

 

Thank you so much in advance

2 REPLIES 2
amitchandak
Super User
Super User

@praveenpasila , Try like

 

Flag Measure = IF(MAX(Table2[Flag]) = "Y",1,blank() )

 

or

 

Flag Measure = calculate( IF(MAX(Table2[Flag]) = "Y",1,0))

Hi @amitchandak ,

 

Thank you for your quick responce.

 

Tried your suggestions but still can see blank rows

praveenpasila_0-1677597221590.png

praveenpasila_2-1677597348002.png

 Can you please help me understand what happens in the background

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.