cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
davay Frequent Visitor
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
nsrshkh1 Member
Member

Re: Matrix - column divide per each level using Direct query

@davay ,

 

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

 

 

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 255 members 2,656 guests
Please welcome our newest community members: