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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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