Loading...

Why DAX Can't Directly Reference Hierarchies in Power BI?

Why DAX Can't Directly Reference Hierarchies in Power BI?

 ðŸ“Œ What is a Hierarchy in Power BI?

A hierarchy in Power BI is a structured arrangement of related columns that allows users to drill down from a higher-level category to a more detailed level.

🔹 Example of a Hierarchy

Consider a Date Hierarchy:

  • Year → Quarter → Month → Day

Or a Geography Hierarchy:

  • Country → State → City


🚫 Why Can’t DAX Refer to a Hierarchy or Hierarchy Level?

DAX can only reference columns, measures, and tables, but not hierarchy objects directly. This is because a hierarchy is a UI feature in Power BI, not an actual data model object.

However, you can reference each level of the hierarchy individually using its column name.

✅ Alternative Approach Using DAX

If you want to calculate something for a specific level in a hierarchy, you must use the underlying column:

🔸 Example: Total Sales by Year (from Date Hierarchy)

TotalSalesByYear = CALCULATE(SUM(Sales[Revenue]), VALUES(Sales[Year]))

This formula references Sales[Year], not the entire hierarchy.


Published on:

Learn more
Power Platform , D365 CE & Cloud
Power Platform , D365 CE & Cloud

Dynamics 365 CE, Power Apps, Powerapps, Azure, Dataverse, D365,Power Platforms (Power Apps, Power Automate, Virtual Agent and AI Builder), Book Review

Share post:

Related posts

Power BI, Build Permissions And Security

If there is sensitive data in your Power BI semantic model that you don’t want some users to see then you need to use row-level security...

4 hours ago

Free Power BI Starter Kit (PBIX + Excel + Roadmap) – Download & Start in 30 Minutes

If you’ve always wanted to learn Power BI but didn’t know where to start, this Free Power BI Starter Kit is the perfect first step. Whether yo...

3 days ago

How to Access a Former Employee’s Power BI “My Workspace” and Recover Reports

One of the common challenges I’ve seen in organizations is when a team member leaves and their Power BI reports are stored in their personal M...

3 days ago

Standalone Copilot in Power BI mobile apps: Chat with your data anytime anywhere (Preview)

We’re excited to announce the release of the Standalone Copilot experience in Power BI Mobile apps! Copilot in Power BI on mobile is a new way...

3 days ago

Bringing Context Aware Intelligence to Power BI

Ten years ago, Power BI entered the market and transformed how businesses interact with data. Before self-service BI, business users waited da...

5 days ago

Power BI November 2025 Feature Summary

The November 2025 Power BI feature update brings several important announcements and enhancements across the platform. Key highlights include ...

5 days ago

PBIR will become the default Power BI Report Format – Get Ready for the Transition

Starting in January 2026, all new reports created in both Power BI Service and Desktop will use the PBIR format by default, and existing repor...

6 days ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy