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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Jurga
Regular Visitor

How to calculate the audit date and assign it to the auditor's

Hi everyone,

I need to visualization in power BI how many times auditors have audit per quarter. In table have column audits date and auditor. Can you help me with this problem ?

thank you

 

SAMPLE

 Audit date    Auditor

18.10.2023John
18.10.2023John
18.10.2023John
18.10.2023John
18.10.2023John
18.10.2023George
20.10.2023George
20.10.2023George
20.10.2023George
20.10.2023George
20.10.2023George
1.12.2023George
20.10.2023George
20.10.2023Ivy
20.10.2023Ivy
20.10.2023Ivy
20.10.2023Ivy
1.12.2023Ivy
1.12.2023Ivy
20.10.2023Ivy
20.10.2023Ivy
20.10.2023Ivy
20.10.2023Ivy
1 ACCEPTED SOLUTION

Hi @Jurga 
modify the measure for :

Count audits distinct = DISTINCTCOUNT('Table'[Date])
Ritaf1983_0-1712052074743.png

The updated Pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

4 REPLIES 4
Ritaf1983
Super User
Super User

Hi @Jurga 
If I understood you correctly the wanted result is something like this :

Ritaf1983_0-1712047592312.png

Then the short solution is to add a column for the quarter :

Ritaf1983_1-1712047640034.png

and basic measure like :

Count audits = COUNTROWS()
Ritaf1983_2-1712047695146.png

 

pbix is attached 

 

For a more efficient way and other measures the best practice is to create a dim table with needed columns of periods and work with it.

For more information please refer :

https://www.youtube.com/watch?v=s2FeGeJtzSE

 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hi @Ritaf1983 ,

thank you it is helpful but I have one more request regarding calculate date. If I have same date and name must be just one audit.

example:

Jurga_0-1712051257376.png

 

 

Hi @Jurga 
modify the measure for :

Count audits distinct = DISTINCTCOUNT('Table'[Date])
Ritaf1983_0-1712052074743.png

The updated Pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Arul
Super User
Super User

@Jurga ,

Are you expecting this?

Arul_0-1712046751231.png





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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