Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
nbs333
Frequent Visitor

Ragged Heirarchy issue using MAX function

Hi,

I am using Daxpattern's guide to remove blanks from my ragged heirarchy. (https://www.daxpatterns.com/parent-child-hierarchies/)

 

I've followed it exactly but am runninng into an issue. The MAX function below returns blank values for some of my clients. I have verified in my data table that all rows have a value of one or greater for the column 'Entity[Depth]'.

 

 

EntityRowDepth := MAX ( Entity[Depth] )

 

 

When I add this measure below to my final matrix, these customers don't show because EntityRowDepth is blank.

 

Total Base :=
VAR Val = [Sum Amount]
VAR EntityShowRow =
    [EntityBrowseDepth] <= [EntityRowDepth]
VAR Result =
    IF ( EntityShowRow, Val )
RETURN
    Result

 

 

Any idea what is causing this? Unfortunity I can't share my file but I hope this is enough to explain the situation. 

2 REPLIES 2
Anonymous
Not applicable

Hi @nbs333 ,

Please provide some data and expected output.

 

Best Regards

Community Support Team _ polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

AlexisOlson
Super User
Super User

Can you share a link to a file that demonstrates the issue? It can be simple dummy data, not any real data.

 

It's very difficult to diagnose this sort of thing completely in the dark.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.