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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
dgwilson
Resolver III
Resolver III

Table with Rows and Columns switched to support ToolTip

Hi there...

 

Seeking some suggestions and advice on presentation of a tooltip.

 

I have, what I consider to be, a large dataset with millions of rows of corporate financial data. I have a screen that provides "drill down" on the transaction detail... it does quickly (6 x drill downs) get to the point where drill down is tedious and it's a good time to show a tool tip.

 

Like us all, I want the tool tip that is presented to look slick and well crafted. And I want it to be easily maintained if necessary.

 

I have about 30 or more fields that I want to show in the tooltip... and thought that a simple table with field name on the left and row details on the right would be simple and meet my needs exactly. However if the table can flipped 90 degrees - I can't see how that's done.

 

What does everyone else do for this? What do you recommend?

 

- David

1 ACCEPTED SOLUTION

@ChrisMendoza -

 

For now... I've decided this will work...

 

 
_DumpValues = 
    VAR CRLF = UNICHAR(13) & UNICHAR(10)
    VAR theText = 
"AMOUNT GC =                          " & FORMAT(FIRSTNONBLANK(EVO_DMT_BUS_CUST_PROFIT_VW[AMOUNT_GC], 1), "Currency") & CRLF &
"DATA_SOURCE =                        " & FIRSTNONBLANK(EVO_DMT_BUS_CUST_PROFIT_VW[DATA_SOURCE], 1) & CRLF &
"DATA_TYPE_DETAIL =                   " & FIRSTNONBLANK(EVO_DMT_BUS_CUST_PROFIT_VW[DATA_TYPE_DETAIL], 1) & CRLF &
"DATA_TYPE_SUMMARY =                  " & FIRSTNONBLANK(EVO_DMT_BUS_CUST_PROFIT_VW[DATA_TYPE_SUMMARY], 1) & CRLF
RETURN
    theText
 
I've been searching for a way to alternately colour the text in DAX... and thus far am unsuccessful.
Otherwise... after codeing for the 3+ fields... it's all done and is maintainable.
 

View solution in original post

7 REPLIES 7
Aron_Moore
Solution Specialist
Solution Specialist

What I did was create a "table" which is just an image of table (borders of the cells/layout), then used card visualizations as the "cells". It takes a second or so to load with the tooltip, but gave us that flexibility.

 

Capture.PNG

ChrisMendoza
Resident Rockstar
Resident Rockstar

@dgwilson -

 

Not sure if this is something that may help https://www.sqlbi.com/articles/displaying-filter-context-in-power-bi-tooltips/






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



@ChrisMendoza -

 

Filter contexts are not what I'm after... however... the idea of doing this in DAX code rather than a predone visual as such is a good idea and would work well for me... and it's maintainable. I"ll give that a go. Thanks.

@ChrisMendoza -

 

For now... I've decided this will work...

 

 
_DumpValues = 
    VAR CRLF = UNICHAR(13) & UNICHAR(10)
    VAR theText = 
"AMOUNT GC =                          " & FORMAT(FIRSTNONBLANK(EVO_DMT_BUS_CUST_PROFIT_VW[AMOUNT_GC], 1), "Currency") & CRLF &
"DATA_SOURCE =                        " & FIRSTNONBLANK(EVO_DMT_BUS_CUST_PROFIT_VW[DATA_SOURCE], 1) & CRLF &
"DATA_TYPE_DETAIL =                   " & FIRSTNONBLANK(EVO_DMT_BUS_CUST_PROFIT_VW[DATA_TYPE_DETAIL], 1) & CRLF &
"DATA_TYPE_SUMMARY =                  " & FIRSTNONBLANK(EVO_DMT_BUS_CUST_PROFIT_VW[DATA_TYPE_SUMMARY], 1) & CRLF
RETURN
    theText
 
I've been searching for a way to alternately colour the text in DAX... and thus far am unsuccessful.
Otherwise... after codeing for the 3+ fields... it's all done and is maintainable.
 

hi, @dgwilson 

For a way to alternately colour the text in DAX,  You could format the color of the whole tooltip but not alternately.

Currently, it is not possible to change text formatting using DAX. There is a similar thread about this issue, please vote it up.

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/31560820-extend-dax-format-functi...

 

Best Regards,

Lin

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

@v-lili6-msft 

 

Voted. Thank you.

Thank you for confirming I can not format colour. YOu've save me many hours of internet searching.

hi, @dgwilson 

You're welcome. Smiley Very Happy

Could you please tell me if you still have other problem? If not, could you please mark the helpful replies as Answered?

 

Best Regards,

Lin

 

 

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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