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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

Top Solution Authors