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
JordanJackson
Advocate II
Advocate II

Looking for Dax Command to calculate the instances of a value across two tables

Hi there,

 

I am looking for a dax command that will return the instances of particular values from two tables. I have created a match table with numbers relating to certain categories. e.g. 4=Saftey.

This key is the same across two tables with a lookup table. However I want to have this data into a conbined total to give me one score for each of the categories. 

 

Currently I have been creating measures to calculate the number of times a value appears in each table seperatly with the following DAX:

 

App Category 4 = CALCULATE(COUNTROWS('App Data'), 'App Data'[Category Number] = 4)
 
But I have just read that measures are not interactive with other visualisations. Also, this seems like an unecessarily high number of measures to have to write and I am sure that there must be an easier way to calculate this. 
 
I'm not sure whether the soloution will be through DAX or whther there is some way to sum together the instances of the same value from different tables into one combined value.
Any help would be greatly appreciated!!

 

1 ACCEPTED SOLUTION

Hi,

 

The calculation group using tablar editor looked to complex for me currently, so I chose to attempt the problem through a different angel. 

 

Thanks

View solution in original post

4 REPLIES 4
v-cazheng-msft
Community Support
Community Support

Hi @JordanJackson 

 

May I know whether your issue has been resolved? If there is any post helps, then please consider Accept it as the solution. If you still have problems on it, please provide some sample data from your tables and let me know the relationships among them. Thanks a lot!

 

Best Regards,

Community Support Team _ Caiyun

Hi,

 

The calculation group using tablar editor looked to complex for me currently, so I chose to attempt the problem through a different angel. 

 

Thanks

Hi @JordanJackson 

 

Noted with thanks!

 

Best Regards,

Community Support Team _ Caiyun

amitchandak
Super User
Super User

@JordanJackson , check if calculation group using tabular editor can help

 

calculation groups
https://www.sqlbi.com/blog/marco/2020/07/15/creating-calculation-groups-in-power-bi-desktop/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.