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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
foks
Frequent Visitor

How to force countax to calculate by the last level of hierarchy without need to showing it

Hi all,

 

I got problem with DAX measure and I don't know what I'm doing wrong...

 

I have 3 - level hierarchy 

 

foks_1-1597226778928.png

 

The problem is that my COUNTAX measure is working ok when I'm listing all three levels in the matrix. But it's showing wrong result when I delete the last level (I don't want it to  be shown). 

 

foks_3-1597227084707.png

 

 

I don't have any idea what is wrong here. The DAX measure is: 

Count = COUNTAX('Hierarchy',if(isblank([Measure1])&&[Measure2]>=6,1,blank()))
 
Measure1 and Measure2 make sense only when calculated by the last level of hierarchy.
How I can force my count to calculate by the last level but without showing it on the report?

 

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@foks , Not very clear

refer

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

https://www.sqlbi.com/articles/clever-hierarchy-handling-in-dax/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.