How to show the total amount in a column chart with tooltip hover text

0
Hi all, I have an entity with an attribute "ProjectName" and another attribute "Amount". I need to show the total amount (sum of all amounts) as a tooltip doing hover in a column chart. For some reason, the text value showed is the amount of one of the entries, not the total although the column represents the total height in the Y axis. Could you help me? Thanks. Mario
asked
3 answers
0

Hi Mario,

Just take a NPE & take an attribute(Int or decimal) totalValue -> go to your overview page or where you want to show the tooltip -> take a dataview select source as microflow -> go to your microflow retrieve your persistable entity data(ProjectName,Amount) -> take aggregate list actvity pass your retrieve list & select sum and select your amount attribute -> create your NPE object & pass the calculated sum value inside this & return the object.

 

Go to page -> inside data view take datagrid2 retrieve your data as you want  -> take a custom column inside datagrid2 for amount attribute -> take tooltip inside this -> in the tooltip pass

Total Amount {1} & select TotalValue attribute from dataview.

 

Hope you like the answer.

 

Screenshot 2024-12-06 014830.pngScreenshot 2024-12-06 014844.pngScreenshot 2024-12-06 014857.png

Screenshot 2024-12-06 015345.png

answered
0

Hi Mohammad,

 

thanks for your answer but it doesn't solve my problem. With you help, I have got to show the total amount but as you can see in the picture, it uses it for all columns not taking in account the year.

 

2024-12-20_14-21-55.png

 

These are the entities I'm using.

2024-12-20_14-26-36.png

Do you have any ideas on how to make it work?

 

Thanks in advance.

answered
0

Hi Mohammad,

 

It finally works. It was a misunderstanding.

Thanks a lot.

answered