Forum Discussion

KS7's avatar
KS7
Regular Visitor
9 months ago
Solved

Need Help with Dynamic Axis Title and Tooltip in Deneb (Power BI)

Hi everyone,

I’m currently working on a custom visualization in Deneb (Power BI) where I’ve implemented:

  • Primary and Secondary Y-axes

  • Dynamic color bands

  • Dynamic Secondary Y-axis using a Field Parameter

Everything is working as expected — the Secondary Y-axis values change dynamically based on the parameter selection.

However, I’m facing an issue:
I want the selected Field Parameter name (for the Secondary Y-axis) to appear dynamically in the Secondary Y-axis title and the tooltip.

I tried using the signal approach in Vega-Lite to capture the parameter value and bind it to the title and tooltip, but it’s not working as intended.

Has anyone successfully implemented this kind of dynamic axis title or tooltip binding using parameters or signals in Deneb?
Any suggestions or code examples would be really helpful! 🙏

Thanks in advance!

  • the Secondary Y-axis values change dynamically based on the parameter selection.

    How did you get that to work? Usually the Deneb visual uses the materialized version of the parameter.

     

    You will also need to force that parameter to a single select slicer unless you want to deal with the list management.

     

    Can you show me how to modify this PoC to have a dynamic parameter?

     

    EDIT:  Forgot about the "extra measure" trick. Provide Field Parameter Support · Issue #238 · deneb-viz/deneb

     

    So - create two measures - one that gets the parameter value and one that gets the parameter title. Then use the second one for your dynamic axis.

4 Replies

  • the Secondary Y-axis values change dynamically based on the parameter selection.

    How did you get that to work? Usually the Deneb visual uses the materialized version of the parameter.

     

    You will also need to force that parameter to a single select slicer unless you want to deal with the list management.

     

    Can you show me how to modify this PoC to have a dynamic parameter?

     

    EDIT:  Forgot about the "extra measure" trick. Provide Field Parameter Support · Issue #238 · deneb-viz/deneb

     

    So - create two measures - one that gets the parameter value and one that gets the parameter title. Then use the second one for your dynamic axis.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi KS7 
    I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.


    Thank you.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi KS7 

    May I check if this issue has been resolved? If not, Please feel free to contact us if you have any further questions.


    Thank you