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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
wolfy_
Helper I
Helper I

Constant line that adaps to the number of day´s selected

Hi, it is possible to add a constant line that adapts to the number of days selected?

 

Every person should do at least 480 minutes in the sum of the different projects that they work.

 

So if I select 3 day I would like the constant line be 480*3 days, 1440 minutes.

If I select 5 day it should be 2440.

 constant line.png

 

Is this possible to implement?

3 REPLIES 3
v-yulgu-msft
Employee
Employee

Hi @wolfy_,

 

Please create measures similar to:

Selected day =
DATEDIFF ( MIN ( 'Data table'[Date] ), MAX ( 'Data table'[Date] ), DAY ) + 1

constant line = [Selected day]*480

1.PNG

 

By the way, it is not able to add a dynamic value like a measure for constant line. You could insert a Line and Stacked column chart, then, add above measure [constant line] to "Line values" section.

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi, it works partially.

 

I think is is not working properly because we work 24x7 and some workers have day off diferent from others.

 

Nevertheless, it is possible to put the constant line independent of the worker?

 

constantline 5.pngconstantline 3.png

Hi @wolfy_,

 

What do you mean "we work 24x7 and some workers have day off diferent from others."?

 

" it is possible to put the constant line independent of the worker?"

Please try this:

Selected day =
DATEDIFF ( MIN ( 'Data table'[Date] ), MAX ( 'Data table'[Date] ), DAY ) + 1

constant line = CALCULATE([Selected day]*480,ALL('Data table'))

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.