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
HUAM
Helper II
Helper II

How to make tooltips

Hi all,

I want to make tooltips by adding additional parts "Portion"

HUAM_0-1645406498649.png

 

Two Value are the measure value like below;

#Off_MGM =
var Last_Month = IF(MONTH(today()) = 1, DATE(YEAR(TODAY())-1, 12, 1), DATE(Year(today()), Month(TODAY())-1, 1))
return
CALCULATE(COUNTROWS('table'),
'table'[channel] = "Offline",
'table'[coupon_status] = "Use",
'table'[transdate]<= TODAY()-1 && 'table'[transdate] >= Last_Month)

 

I think I have to make a measure value for tooltips

But I don't have any idea.

please help me

 

Thank you.

 

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @HUAM,

Can you please share some dummy data that keep raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

@HUAM , try a measure like this

calculate(CALCULATE(COUNTROWS('table')), CALCULATE(COUNTROWS('table'), removefilters('table'[channel])))

 

Percent of SubTotal or Total: https://www.youtube.com/watch?v=6jTildcV2ho&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=37

Thank you.

I tried 

DIVIDE(CALCULATE(COUNTROWS('table')),
CALCULATE(COUNTROWS('table'),
REMOVEFILTERS('table'[channel])))

but it isn't work. Both online and offline results are 1.

 

The channel contains other things besides online and offline.

And also I want to know that If two measurements are made from different tables, how to calculate them.

Actually, I actually don't know much about funtion(selectedmeasure),

but I hope that if you mouse over to a certain measure value, the ratio results will come out.

So i tried like below..

IF(SELECTEDMEASURE() = [#Online], DIVIDE([#Online], [#Online]+[#Offline]),
IF(SELECTEDMEASURE() = [#Offline], DIVIDE([#Offline],[#Online]+[#Offline]))
)

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.