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
mapko
Helper I
Helper I

DAX measure issue

All,

 

Please see attached an example of my reporting data model.

 

On the front end I have Country as a filter and would like to derive some key stats;

* number of assigned licenses

* number of users trained

* number of event

* etc

 

I am having trouble getting the number of event in which a selected Country partcipated correct. For most of the other measures I used USERELATIONSHIP function, which produces correct results.

 

So for example I would like to have the following insight:

 

For Country A there were XX number of licenses assigned. There were in total XX participants, which were part of XX events.

 

Can anyone please give me an idea how to get the number of events working based on Country selection?

 

Thank you

Mdax.png

 

1 REPLY 1
v-caliao-msft
Microsoft Employee
Microsoft Employee

Hi mapko,

 

Could you please post the formula you used? Do you get an incorrect result?

 

Generally, if you have proper relationship in your data model, it will re calculate the measure after a item is selected in slicer. So could you please provide us more detail information, so that we can make further analysis.

 

Regards,

Charlie Liao

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!

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.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.