The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi Experts
I have the following sample data extract as shown..
i have added the following as a calculated column to the above table
Solved! Go to Solution.
Hi @Anonymous ,
Here's my sample data (the values of my date column are different from yours.):
For your problem, I suggest you use measure:
Days =
VAR x =
CALCULATE(
MAX([Date]),
ALLEXCEPT(
DH_AUDITCONTENTIMPORT,
DH_AUDITCONTENTIMPORT[Company], DH_AUDITCONTENTIMPORT[Product]
)
)
RETURN
DATEDIFF(
x,
TODAY(),
DAY
)
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Did not get it completely
Try
Maxdate =
var _1 =CALCULATE (
MAX ( DH_AUDITCONTENTIMPORT[Date] ),
ALLEXCEPT ( DH_AUDITCONTENTIMPORT, DH_AUDITCONTENTIMPORT[Product] )
)
return
datediff(_1, today()-1,Day)
Hi Amrit
Lets take company a, and product book the max date is 3/3/2020, so this less todays date show give us 8 days.
Hi @Anonymous ,
Here's my sample data (the values of my date column are different from yours.):
For your problem, I suggest you use measure:
Days =
VAR x =
CALCULATE(
MAX([Date]),
ALLEXCEPT(
DH_AUDITCONTENTIMPORT,
DH_AUDITCONTENTIMPORT[Company], DH_AUDITCONTENTIMPORT[Product]
)
)
RETURN
DATEDIFF(
x,
TODAY(),
DAY
)
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Can you share whats the expected output?
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
99 | |
90 | |
83 | |
64 | |
58 |
User | Count |
---|---|
244 | |
128 | |
118 | |
79 | |
78 |