Forum Discussion

Henrique_Quint's avatar
1 year ago
Solved

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

Here's some mockup of what I want to do

 

  • 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 |

1 Reply

  • 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 |