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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Phantomiceman
Frequent Visitor

Ascertaining Frequency of an event

Hi i was wondering if someone could help me on this. I have been tasked to run an audit on our report library to work out which reports are the most important as we are migrating to a new system and we want to priortise the work accordingly once the new system is  implemented. I have decided to use power bi as it wil be easier to interogate the data as well produce some visualisations.I have ran a SQL extract against our existing database  to ascertain when each of the reports have been ran and this provides me with a list of data with basic data such as the name of the report,which department the report is for, what platform the report is developed on,the date the report was ran  and who ran it.

 

I need to now use this data to rank them accordingly based on the frequency they have been ran so basically the ones that are ran the most and the most frequently ie daily will ascend up the heirarchy in terms of priority. I have ran a basic count in order to acertain how many times the reports been ran but from the dates i need to work on average if the report is being ran daily, weekly, monthly or annually.ideally if i can get the above labels together  with number of days that would be brillant.

 

The data is currently all one table as its all off one sql query . Call it 'Report' table.. The dates of execution in Audit Log add date column and the name of the report resides in a report name column. Any advice would be greatly welcomed. I did find a similar request on this in this forum but wasn't exactly what i was after.

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

If you are using direct query, you need to create the corresponding date, week, month and year columns (on the database or using DAX or M query in PBI), so that you can create different measure based on the conditions of the new columns.

Measure may like below:

daily = CALCULATE (AVERAGE (table[xxxx]),ALLEXCEPT (table,table[Date]))

Greg_Deckler
Super User
Super User

@Phantomiceman Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

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