Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon'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.
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.
Hi @DataSciWannabe,
Could you please offer a sample data to have a test and post your desired result if possible?
Regards,
Daniel He
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
146 | |
85 | |
66 | |
52 | |
48 |
User | Count |
---|---|
215 | |
90 | |
83 | |
67 | |
59 |