Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hi - is there a way to add a target constant line to a line graph that is depedent on the category. I have 15 different categories which each have a different target goal. Is there a way to change that target constant line automatically when I switch categories?
@PowerBI123456 , Create a meausre like
Switch(True(),
Max(Table[Category]) ="Cat1" , 30,
Max(Table[Category]) ="Cat2" , 40,
// Add so on
)
@amitchandak thank you! But it doesnt seem to be working. Could you provide a sample file please? Thanks so much!
Hi @PowerBI123456 ,
Check the similar thread below:
https://community.powerbi.com/t5/Desktop/Dynamic-constant-line/td-p/597459
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 63 | |
| 49 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 122 | |
| 120 | |
| 38 | |
| 36 | |
| 29 |