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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Baskar
Resident Rockstar
Resident Rockstar

Problem in Dax and Relationship

Hi All,

 

Thanks Advanced !!!

 

Problem : I was getting value like cross join when connecting three tables. This prob is occurs when i was replace Isblank  with 0 in DAX Measure. 

 

Importance : Please help me . Its crash my all previous projects also. Really am in big trouble. What is the solution for this ?

 

 

1. RelationshipRelationshipSalary from Employee Table - Direct columnSalary from Employee Table - Direct columnSalary from DAX CalculationSalary from DAX Calculation

 

If i remove the Isblank condition its working fine for me.

 

@ankitpatira

@Greg_Deckler

@Seth_C_Bauer

@kcantor

@MiguelMartinez

@MattAllington

 

9 REPLIES 9
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Baskar,

 

The blank value is different from 0 value. When you aggregate values in a visual, the result 0 will be regarded as a numerical value and displayed while the blank will be ignored.

 

Thanks,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BhaveshPatel
Community Champion
Community Champion

Replace 0 with BLANK().

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

Hi @BhaveshPatel thanks for your reply.

when i remove 0 am getting the result that i know. But i want to know what is logic runs behind the DAX.

Baskar
Resident Rockstar
Resident Rockstar

Anonymous
Not applicable

@Baskar,

 

Did you get the solution? I am also facing this issue. 

 

Thank you,

Niket Talati

Yes , I willl help you on this case.

 

 

Let me know if u used any measures ? 

 

If yes the prob is on the measure caluculation.

Eg. In that measure are u used anywhere replace blank with some other value ? 

 

If yes , that is the prob .

 

or else pls share your scenario 

 

Anonymous
Not applicable

Hi @Baskar,

 

Thanks for the quick response! Appreciate it.

 

Yes, I have used isblank DAX and replacing it with 0. Here is my measure: 

 

Relevant Opportunities Closed = IF(ISBLANK(CALCULATE([Total Opportunities],FILTER(d_Opportunity,d_Opportunity[Opportunity Status]="CLOSED"))),0,CALCULATE([Total Opportunities],FILTER(d_Opportunity,d_Opportunity[Opportunity Status]="CLOSED")))

 

Could you please help me to resolve this issue?

 

Thanks,

Niket Talati

Try this one Dude,

 

 

Relevant Opportunities Closed =

 

var X=CALCULATE([Total Opportunities],FILTER(d_Opportunity,d_Opportunity[Opportunity Status]="CLOSED"))

 

return if (isblank(X),blank(),X)

Anonymous
Not applicable

@Baskar,

 

Thanks for the response and new DAX. Unfortunetly it doesn't work with my scenario since I need to display 0 in place of blank. So when I replace blank with 0 through your DAX, the orignial issue is reproducing again.

 

Any other tips on this?

 

Regards,

Niket Talati

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors