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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Microsoft Employee
Microsoft 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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