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
DataSciWannabe
Frequent Visitor

Measure to Count Measure Instances (Two Data Tables)

 

Does anyone know a DAX formula to do a count of the results of a measure that refers to two different data tables?

 

I have two data tables (one is a copy of another), to start I created matching measures for the two data tables to pull the average sale price 

 

Price1 = CALCULATE([Price],FILTER('Data','Data'[Month]=7),FILTER('Data','Data'[Year]=2018))

 

Price2 = CALCULATE([Price2],FILTER('Data2','Data2'[Month]=12),FILTER('Data2','Data2'[Year]=2018))

 

Then the formula for the variance between the two is below:

 

PriceVar = [Price2]/[Price1]-1

 

This is the formula I am looking to count the number of items (column in each of the data tables) where the PriceVar measure is below 5% for example.

1 REPLY 1
v-danhe-msft
Employee
Employee

Hi @DataSciWannabe,

Could you please offer a sample data to have a test and post your desired result if possible?

 

Regards,

Daniel He

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

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.