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
sicalandmt1
Regular Visitor

Granularity for M365 Usage Analytics data

We connected Power BI desktop to the M365 Usage Analytics.

We'd like to display daily totals over the past 30 days for two items in particular: MBX_StorageUsed and MBX_TotalItems

 

The monthly totals show up fine in the bar graph. When I add the day field into Date Hierarchy, the visualization does not show daily totals. I was expecting to see a bar graph for every day of the month.

 

How can I determine if the dataset contains daily totals for these two counters?

How can I modify the visualization to show daily totals over the past 30 days instead of a monthly total?

 

I searched the forum and found this message (https://community.powerbi.com/t5/Desktop/how-to-build-M365-usage-reports-with-our-Office-365-data/m-...) however I did not see steps to modify the visualization.

 

The link provided in the message (https://docs.microsoft.com/en-us/microsoft-365/admin/usage-analytics/customize-reports?view=o365-wor...) shows basic steps to create a new visualization.

 

Thank you 

 

 

1 ACCEPTED SOLUTION
v-zhenbw-msft
Community Support
Community Support

Hi @sicalandmt1 ,

 

Do you want to show the daily total like the screenshot below?

 

gra1.jpg

 

If you want to show the past 30 days, you can refer the following steps.

 

1. Create a measure like this,

 

Measure = 
var _past30 = CALCULATE(MAX('Table'[Date]),ALLSELECTED('Table'))-30
return
CALCULATE(SUM('Table'[value]),FILTER('Table','Table'[Date]>=_past30))

 

2. Then we can create a bar chart to get the result.

 

gra2.jpg

 

If it doesn’t meet your requirement, could you please provide a mockup sample based on fake data?

 

It will be helpful if you can show us the exact expected result based on the tables.

 

Please upload your files to OneDrive For Business and share the link here. Please don't contain any Confidential Information or Real data in your reply.

 

Best regards,

 

Community Support Team _ zhenbw

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

 

BTW, pbix as attached.

View solution in original post

1 REPLY 1
v-zhenbw-msft
Community Support
Community Support

Hi @sicalandmt1 ,

 

Do you want to show the daily total like the screenshot below?

 

gra1.jpg

 

If you want to show the past 30 days, you can refer the following steps.

 

1. Create a measure like this,

 

Measure = 
var _past30 = CALCULATE(MAX('Table'[Date]),ALLSELECTED('Table'))-30
return
CALCULATE(SUM('Table'[value]),FILTER('Table','Table'[Date]>=_past30))

 

2. Then we can create a bar chart to get the result.

 

gra2.jpg

 

If it doesn’t meet your requirement, could you please provide a mockup sample based on fake data?

 

It will be helpful if you can show us the exact expected result based on the tables.

 

Please upload your files to OneDrive For Business and share the link here. Please don't contain any Confidential Information or Real data in your reply.

 

Best regards,

 

Community Support Team _ zhenbw

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

 

BTW, pbix as attached.

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.