Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi!
I am reporting on the number of devices per tenant over time. I want to add a third column to the matrix below, showing the the difference between the number of devices per tenant between today and the same date last week. I download data to the report once a week.
I have created a matrix in Power BI with the following data:
Rows: Tenant
Columns: Date
Values: Devices (count)
This is how far I have come (filtered on Top N = 2 latests dates). Can anyone help me adding a new column to this matrix with the difference/delta between the columns below?
Solved! Go to Solution.
Hello:
Assuming you have measure to Count the devices like Total Devices = SUM(Table[Devices])
You can use DATEADD to get the figure from 7 days ago when you are looking at a particular date.
Sorry then
subtract the two.
Difference = [Total Devices] - [Devices 1 week ago] (the DATEADD measure I just mentioned)
Hi again!
A follow-up on this one. I used this function to calculate the number of devices a week ago:
Hi Ali-S:
When I look at the 94 as one week ago for 4-05-2021 , the week before looks like 3-30-2021 which is 94?
I think if you sort your weeks it will look better.
Just want to ask if the Tenant column is from your Date Table? The Data table would be marked as such and has a relationship with your fact table.
If you want to provide example file I'm happy to check it out from that perspective.
Thanks a bunch! It worked 😄
Your welcome. Great!
Hello:
Assuming you have measure to Count the devices like Total Devices = SUM(Table[Devices])
You can use DATEADD to get the figure from 7 days ago when you are looking at a particular date.
Sorry then
subtract the two.
Difference = [Total Devices] - [Devices 1 week ago] (the DATEADD measure I just mentioned)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
21 | |
15 | |
14 | |
11 | |
7 |
User | Count |
---|---|
26 | |
24 | |
12 | |
11 | |
10 |