This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Good afternoon
I have a dashboard where I show the progress of enrollment according to the business line filter.
As you can see, I have 3 constant lines to the x-axis M1, M2 and M3 which have to disappear according to the filter, that is, if I select high school only M1 and M3 are shown or if I select graduate only M3 appears.
I haven't been able to get to the right conditional, you will have some example of how I can do it.
I would be very grateful.
Solved! Go to Solution.
Hi @Syndicate_Admin ,
Based on the information you have provided, you can follow the steps below:
1. Create a table as a slicer.
2.Add new measures.
graduate =
IF ( SELECTEDVALUE ( Table2[Select] ) = "graduate", [sales_], BLANK () )
high school1 =
IF ( SELECTEDVALUE ( Table2[Select] ) = "high school", [number_], BLANK () )
high school2 =
IF ( SELECTEDVALUE ( Table2[Select] ) = "high school", [sales_], BLANK () )
3.Put measures into the y-axis.
Final output:
How to Get Your Question Answered Quickly - Microsoft Fabric Community
If it does not help, please provide more details with your desired out put and pbix file without privacy information.
Best Regards,
Ada Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Syndicate_Admin ,
Based on the information you have provided, you can follow the steps below:
1. Create a table as a slicer.
2.Add new measures.
graduate =
IF ( SELECTEDVALUE ( Table2[Select] ) = "graduate", [sales_], BLANK () )
high school1 =
IF ( SELECTEDVALUE ( Table2[Select] ) = "high school", [number_], BLANK () )
high school2 =
IF ( SELECTEDVALUE ( Table2[Select] ) = "high school", [sales_], BLANK () )
3.Put measures into the y-axis.
Final output:
How to Get Your Question Answered Quickly - Microsoft Fabric Community
If it does not help, please provide more details with your desired out put and pbix file without privacy information.
Best Regards,
Ada Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Syndicate_Admin , In constant line you can use measure using Fx.
You can use a measure like
if(selectedvalue(Table[Enrollment]) ="School", 50, blank())
Blank will make line to disappear
You can also consider isfiltered and hasonevalue
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 31 | |
| 23 | |
| 15 |
| User | Count |
|---|---|
| 76 | |
| 59 | |
| 32 | |
| 31 | |
| 26 |