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

Dax Script

hello all, 
i'm wondering if someone can help m, being trying to make this measure since the last 1 week now 
my client asked me to produce a dashboard displaying only the last message received
here is the scenario.
its a reservation system, users have id call PDL and eache PDL can have one or multiple message when booking an appointement.
types of message:
- Prise de rdv en succès
-proposition possible
pas de possibilité de rdv 
etc..
now the mesure that i need to create is the count of all last message per max(hour).
i made the following script 
 
test_mesure:=CALCULATE( DISTINCTCOUNT('ANALYSE PRV MESURES'[PDL]); LASTNONBLANK('ANALYSE PRV MESURES'[DATETIME];'ANALYSE PRV MESURES'[DATETIME])
)
and this is not working. 
 
someone has an idea on how to make it ?

 

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous 

 

Could you please share sample dataset and expected output.

 

Thanks,

pravin

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.

Top Solution Authors