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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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