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.
I am using the parent-child hierarchy as outlined here: https://www.daxpatterns.com/parent-child-hierarchies/# This does a great job of organizing the levels to expand only as far as needed for each Category and showing the appropriate amount for each level.
However, I need to adjust a few things.
I have the Entity table and Path/Level fields as the link above pointed out. I also have the fields on my transactional table:
Sum Amount = SUM ( TranTbl[AMOUNT] )
Hi, @Anonymous
It’s my pleasure to answer for you.
According to your description,II think I understand what you need,but it's not clear about the specific field type and data, it is difficult to reproduce the scene you want.
Could you please share some sample data with OneDrive for business or pictures?So we can help you soon.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous - If you download the PBIX file from the blog post you'll find:
% Parent =
VAR BrowseLevel = [AccountBrowseDepth]
VAR Numerator = [Total]
VAR Denominator =
SWITCH (
BrowseLevel,
1, CALCULATE( [Total], ALL ( Account[Level1] ) ),
2, CALCULATE( [Total], ALL ( Account[Level2] ) ),
3, CALCULATE( [Total], ALL ( Account[Level3] ) ),
4, CALCULATE( [Total], ALL ( Account[Level4] ) ),
5, CALCULATE( [Total], ALL ( Account[Level5] ) ),
6, CALCULATE( [Total], ALL ( Account[Level6] ) ),
7, CALCULATE( [Total], ALL ( Account[Level7] ) )
)
VAR Result = DIVIDE ( Numerator, Denominator )
RETURN
Result
I was going to say some sort of CALCULATE([MEASURE],ALLEXCEPT('TABLE',[COLUMN])) but since you're using sqlbi.com's pattern I figured there was some little trick 🤔
Proud to be a Super User!
@ChrisMendoza I don't actually want it to just show % of parent. I want it to show % of Group A. Basically what I'm doing is a P&L report. I want to show each line of revenue (Group A) and expenses (Group B) as a % of Revenue (Group A total being total Revenue).
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 |
---|---|
143 | |
75 | |
62 | |
51 | |
47 |
User | Count |
---|---|
213 | |
81 | |
64 | |
60 | |
56 |