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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

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
November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.