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.
I have a need to show a trend of number of assets at a certain location. I have arrival and release dates, but I want to show total number of all at the location on a daily basis. Below is a simplified version of the data and graph I am looking for.
ID | Arrive | Release |
1 | 1/10/2023 | 2/2/2023 |
2 | 1/15/2023 | 2/5/2023 |
3 | 1/31/2023 | 2/10/2023 |
4 | 2/3/2023 | 2/10/2023 |
Solved! Go to Solution.
Try
Num at location =
VAR CurrentDate =
MAX ( 'Date'[Date] )
RETURN
CALCULATE (
DISTINCTCOUNT ( 'Table'[ID] ),
'Table'[Arrival] <= CurrentDate
&& (
'Table'[Release] > CurrentDate
|| ISBLANK ( 'Table'[Release] )
)
)
Try
Num at location =
VAR CurrentDate =
MAX ( 'Date'[Date] )
RETURN
CALCULATE (
DISTINCTCOUNT ( 'Table'[ID] ),
'Table'[Arrival] <= CurrentDate
&& (
'Table'[Release] > CurrentDate
|| ISBLANK ( 'Table'[Release] )
)
)
Thank you! I just made sure that my relationship between the date table and my data table was inactive and it worked.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
101 | |
66 | |
48 | |
39 | |
32 |
User | Count |
---|---|
166 | |
117 | |
61 | |
58 | |
42 |