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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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])"

Best Regards,
Gökberk Uzuntaş

LinkedIn: https://www.linkedin.com/in/g%C3%B6kberk-uzunta%C5%9F-b43906198/

Medium: https://medium.com/@uzuntasgokberk

 

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

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])"

Best Regards,
Gökberk Uzuntaş

LinkedIn: https://www.linkedin.com/in/g%C3%B6kberk-uzunta%C5%9F-b43906198/

Medium: https://medium.com/@uzuntasgokberk

 

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors