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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Change Legend Value Based On Drill Level

I am tracking projects' phases through time on a bar char, from design to construction.  I am counting how many projects are in each phase at a given point in time as a kind of resource utilization chart.

 

If the user is looking at a Day drill level, that's easy.  But when the user drills up to Month, a project could be in both phases in a month if, let's say, it changes from design to construction on the 15th.  At that level I would like the project to be counted only once as being "in between" rather than design or constuction... until the user drills back down to day.

 

The In Between legend value could never exist at the day level but would appear as soon as the user drilled up to a month or quarter.  Any suggestions appreciated!

 

 

2 REPLIES 2
Anonymous
Not applicable


@Anonymous wrote:

I am tracking projects' phases through time on a bar char, from design to construction.  I am counting how many projects are in each phase at a given point in time as a kind of resource utilization chart.

 

If the user is looking at a Day drill level, that's easy.  But when the user drills up to Month, a project could be in both phases in a month if, let's say, it changes from design to construction on the 15th.  At that level I would like the project to be counted only once as being "in between" rather than design or constuction... until the user drills back down to day.

 

The In Between legend value could never exist at the day level but would appear as soon as the user drilled up to a month or quarter.  Any suggestions appreciated!


Well, you should approach this in a different way. You should have a dimension called something like "Project Phases" and in there you should store all the possible phases (together with your "in-between"). Then, you should create a measure that would for any given time frame return the number of projects that are in any of the phases stored in there. Then your problem disappears...

 

Proper model design is more important than mastery of DAX: https://www.youtube.com/watch?v=pvIVMEFQokE

 

Best

Darek

 

 

Stachu
Community Champion
Community Champion

Hi, can you add sample tables from your model with anonymised data?

 

As described here:

How to Get Your Question Answered Quickly 

here is some general info on hierarchies that might be helpful

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



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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