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 all,
I have a table with employee, exam, date of exam and type of exam.
I need to program the next exam for each employer. Each employer has to do a new exam past 1 year of the last.
So, I use the data of exam and sum 12 moths to get a new data. Like exemple below:
emplyer | date of exam | type | next exam |
Leonardo | 05/04/2024 | blood | 05/04/2025 |
Rafael | 05/04/2022 | blood | 05/04/2023 |
Rafael | 05/04/2023 | blood | 04/04/2024 |
Rafael | 05/04/2024 | blood | 05/04/2025 |
My trouble is: I need the calculate the next Rafael's exam only based the last date.
The correct result is:
employee | date of exam | type | next exam |
Leonardo | 05/04/2024 | blood | 05/04/2025 |
Rafael | 05/04/2022 | blood | |
Rafael | 05/04/2023 | blood | |
Rafael | 05/04/2024 | blood | 05/04/2025 |
How can I do it on Power BI?
Sorry any mistake, I'm Brazilian and still learning english.
Solved! Go to Solution.
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LeanAndPractise(Everyday) ) |
I tried that solucion and worked!
I dont know many dax that you use, like: INDEX, EDATE...
I will continue studying and practing. Thank you so much, you save me!
Hi @LeonardCs
You may try the following calculated column
next exam =
IF (
'Table'[date of exam]
= CALCULATE (
MAX ( 'Table'[date of exam] ),
ALLEXCEPT ( 'Table', 'Table'[employee], 'Table'[type] )
),
EDATE ( 'Table'[date of exam], 12 )
)
Hey, thank you so much for answer me
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 |
---|---|
13 | |
12 | |
11 | |
7 | |
7 |
User | Count |
---|---|
15 | |
13 | |
12 | |
9 | |
9 |