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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Measure to filter expression when relationship table has no value

Hello,

 

I have a measure calculating an integer from a date value in "Infinity" table. I only want it to do so when the "descriptors" table has no value based on the relationship between infinity and desicriptors. The measure returns all blank values even when there is a date value in the infinity column and a blank value in the descriptors column. 

 

Daily Release = CALCULATE( INT(CALCULATE(max(Infinity[Date Time]))), Descriptors[Descriptor]= BLANK())
 

PBI 2.pngPBI 1.png

2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hi  @Anonymous ,

 

As the 2 tables are many- many relationship,so when you wanna calculate a value based on the value from another table,if there're blank values in rows which have the same values in the related columns,it may return blank.

Check the reference below which may help:

https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-many-to-many-relationships

 

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

Hi @Anonymous ,

 

avoid the many to many relationship and only filter in one direction.

AvoidMN.png

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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