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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
jkapso751
Helper I
Helper I

DAX measure impacting relationship

Hi all,

I'm a newbie at DAX looking for some help.  I have two simple tables: one dimension (Product/Cluster) and one fact (Product/Revenue/Profit).  I've created a relationship between the product columns in both tables.

 

jkapso751_0-1683589295923.png

 

In the pivot you may be able to see that I'm aggregating by "Cluster."  I want to create a measure that will flag rows in the pivot with zero revenue.  For some reason using an "if" statement seems to unravel the relationship between product and cluster:

 

jkapso751_2-1683589548872.png

jkapso751_1-1683589517244.png

 

Is there a way that I can do this using DAX without impacting the relationship?  Many thanks and I appreciate any help I can get!!

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

 

Jihwan_Kim_1-1683599590914.png

 

Jihwan_Kim_0-1683599565883.png

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

 

Jihwan_Kim_1-1683599590914.png

 

Jihwan_Kim_0-1683599565883.png

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.