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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply

Divide measure by parameter

Hello, everyone!

 

I have a parameter that has two measures (revenue) as fields. What I have now is a bar chart that has two Y axis changes one of its Y axis as this parameter that changes when I click it. What I want to do is have a line that is the variation of one of the Y axis and the selected fields of the parameter

Henrique_Quint_1-1739211641719.png

Here's some mockup of what I want to do

 

1 ACCEPTED SOLUTION
uzuntasgokberk
Super User
Super User

Hello @Henrique_Quint ,

You have line in your image. But in the x axis there is only one value that's why it is showed "dot". However, x-axis will increase that will be shown as a line. And if you'd like to change the value of line based on selected slicer you can create a measure like:
"test = IF(SELECTEDVALUE(FieldTab[Fieldcol])="Field1",[Measure1],[Measure2])"

Kind Regards,
Gökberk Uzuntaş

📌 If this post helps, then please consider Accepting it as a solution and giving Kudos — it helps other members find answers faster!

🔗 Stay Connected:
📘 Medium |
📺 YouTube |
💼 LinkedIn |
📷 Instagram |
🐦 X |
👽 Reddit |
🌐 Website |
🎵 TikTok |

View solution in original post

1 REPLY 1
uzuntasgokberk
Super User
Super User

Hello @Henrique_Quint ,

You have line in your image. But in the x axis there is only one value that's why it is showed "dot". However, x-axis will increase that will be shown as a line. And if you'd like to change the value of line based on selected slicer you can create a measure like:
"test = IF(SELECTEDVALUE(FieldTab[Fieldcol])="Field1",[Measure1],[Measure2])"

Kind Regards,
Gökberk Uzuntaş

📌 If this post helps, then please consider Accepting it as a solution and giving Kudos — it helps other members find answers faster!

🔗 Stay Connected:
📘 Medium |
📺 YouTube |
💼 LinkedIn |
📷 Instagram |
🐦 X |
👽 Reddit |
🌐 Website |
🎵 TikTok |

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors