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
Anonymous
Not applicable

Tooltop to display measure with no of responses by date

Hi,

 

This forum is doing great job for all levels. I entered into Power BI world from SSRS and learning lots of DAX scripting on the way.

 

I believe this will be the simplest queston someone has posted on this forum.  In the urgency of request I am not having any other option but to ask here. Can someone one please suggest if I want to display a tooltip which simply shows count of record date. 

 

tbl_Survey Data in summarise form is,

 

RecordDateCountSurveyAvgScore (0-10)
03/04/2020205.3
08/04/2020546.8
10/04/2020454.9
12/04/2020607

 

 

Line chart will nicely show four data points according to average score. I need to create a tooltip measure to show on that particular day how many surveyCounts are there. When I create measure it shows total SurveyCount which is 169, whereas requirement is to show tooltip what is surveycount on that particular record date. 

 

I tried these two measures

No of responses = SUM(tbl_Survey[CountSurvey])
 
Another measure I used is
  
No of responses by date =
VAR _date = SELECTEDVALUE(tbl_Survey[RecordDate])
VAR _result = CALCULATE(SUM(tbl_Survey[RecordDate]),
FILTER(tbl_Survey, _date = tbl_Survey[RecordDate]))
RETURN _result
 

 

Please let me know if I missed something to provide. 

 

 

Many thanks

3 REPLIES 3
nandukrishnavs
Super User
Super User

@Anonymous -

 output.JPG

Is this expected output?


Regards,
Nandu Krishna

Anonymous
Not applicable

Yes that is right. Can you please share measure 's DAX code.

 

Regards

@Anonymous  - 

 

Assuming that your table structure is similar to below.

table.JPG

I haven't used any measure. You can directly use columns into the visual fields.

 

settings.JPG

 


Regards,
Nandu Krishna

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.