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

Matrix - column divide per each level using Direct query

Hello guys,

 

I have a direct query which give's me 2 values for the last level of my hierarachy, the number of actives users and the total parc of users.

I want to calculate the percentage of the active users from the total parc.

 

The problem is that when i do these for the last level it's ok, I calculate the percentage in the query and everything is fine. But how about the upper levels of the hierarchy? I can't use average function beacuse it returns wrong values.

I have 4-5 upper levels and I want to calculate the percentage for each of them, not agregate the calculeated column from the bottom level.

 

In attached picture I have good values for the last level but the TDA should be 2 / 226 * 100 = 0.88% instead of 1.29%.

Capture.PNG

 

Thank you,

Edaurd

 

1 REPLY 1
Anonymous
Not applicable

@davay ,

 

Would provide the data in table format instead of showing in visual?

 

 

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.