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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
water-guy-5
Helper III
Helper III

Creating a line chart with limit (drawings included***)

Hello,

I have two datasets in this example. Example = Tracks daily employee hours by store to avoid overtime exceedances.

Table1 = a basic template that has the daily hourly limits for a store

waterguy5_1-1666726825319.png

 


Table 2 = contains records for daily hours logged at a store

waterguy5_2-1666726835362.png

 


What I want is for my chart to have a "limit" line. So for store A, the line should be at 521 always. And then the daily records of 216 and 321 (in this example) should be shown.

waterguy5_0-1666726806656.png

My Issue is that whenever I use the area chart is Power BI, it sums my columns. So instead of it being 521 for store a (I have a filter going), its around 2000. There is no "Do Not Summarize" option for this chart. When I do a table, I can get exactly what I want, so why can't I do this for the chart??????

Thanks!

1 ACCEPTED SOLUTION
Shaurya
Memorable Member
Memorable Member

Hi @water-guy-5,

 

You can use:

 

Limit A = CALCULATE(SUM('Table1'[Employee Hours]), FILTER('Table1', 'Table1'[Store] = "A"))

 

Then show this value by using a constant line.

 

Works for you? Mark this post as a solution if it does!
Consider taking a look at my blog: Forecast Period - Previous Forecasts

View solution in original post

1 REPLY 1
Shaurya
Memorable Member
Memorable Member

Hi @water-guy-5,

 

You can use:

 

Limit A = CALCULATE(SUM('Table1'[Employee Hours]), FILTER('Table1', 'Table1'[Store] = "A"))

 

Then show this value by using a constant line.

 

Works for you? Mark this post as a solution if it does!
Consider taking a look at my blog: Forecast Period - Previous Forecasts

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.