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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Target line from minimum to maximum

I've looked around if I could fine answer, but unfortunately couldn't find anything. I've been looking for a way to make a target line that starts at a minimum at the begin of the year (600.000) and a maximum at the end of the year (8.000.000)? Like the red line in the example. 

 

voorbeeld.png

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous 

 

It’s my pleasure to answer for you.

According to your description, I think you can create a measure,then use it in line values.

Like this:

Measure2 =
IF (
    SELECTEDVALUE ( 'Table 3'[month] ) = 1,
    MIN ( 'Table 3'[amount] ),
    IF ( SELECTEDVALUE ( 'Table 3'[month] ) = 12, MAX ( 'Table 3'[amount] ) )
)

3.png

Here is my sample .pbix file.Hope it helps.

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Thanks for the help, only need to implement it in my own PowerBI model 🙂 

v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous 

 

It’s my pleasure to answer for you.

According to your description, I think you can create a measure,then use it in line values.

Like this:

Measure2 =
IF (
    SELECTEDVALUE ( 'Table 3'[month] ) = 1,
    MIN ( 'Table 3'[amount] ),
    IF ( SELECTEDVALUE ( 'Table 3'[month] ) = 12, MAX ( 'Table 3'[amount] ) )
)

3.png

Here is my sample .pbix file.Hope it helps.

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thanks for the help, also got advice on making a Generated series table. Will try to implement this in the current table

Link Generate series 

amitchandak
Super User
Super User

@Anonymous , you can have constant like. or you create a measure that take advantage axis and keep on adding the value

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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