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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.