Forum Discussion

Ferha_Jafri's avatar
Ferha_Jafri
Frequent Visitor
1 year ago
Solved

Tooltip not showng dynamic values in a Bar Chart

Hello Experst, 

 

I am using DAX ecpression as 

Prem_Cla_Inc toggle =
 var selected_toggle = SELECTEDVALUE(View[Value])
 var var_value = SWITCH(TRUE(),
selected_toggle = "Total Premium",[Sum_Premium],
selected_toggle = "Total Incurred",[Sum_Incured],
selected_toggle = "No. of Claims",[# Claims],0
)
 RETURN var_value
 
in the tooltip , on a BAR chart it is showing Prem_Cla_Inc toggle = Value as

Although I want if Premium is slected then Premium = 65535 should return.

 

Thanks in advance

 

  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi,Ferha_Jafri 

    Regarding the issue you raised, my solution is as follows:

    1.Firstly, you need to create parameter values:

    2.Secondly, modify the parameter values and use them as slicers:

    3.Finally, adjust the visual objects:

    4.Here is the final result, which I hope meets your requirements:

    Please find the attached pbix relevant to the case.

     

    Best Regards,

    Leroy Lu

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

     

     

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi,Ferha_Jafri 

    Regarding the issue you raised, my solution is as follows:

    1.Firstly, you need to create parameter values:

    2.Secondly, modify the parameter values and use them as slicers:

    3.Finally, adjust the visual objects:

    4.Here is the final result, which I hope meets your requirements:

    Please find the attached pbix relevant to the case.

     

    Best Regards,

    Leroy Lu

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