Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
LeonardCs
Frequent Visitor

HELP WITH DAX

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:

 

emplyerdate of examtypenext exam
Leonardo05/04/2024blood05/04/2025
Rafael05/04/2022blood05/04/2023
Rafael05/04/2023blood04/04/2024
Rafael05/04/2024blood05/04/2025

 

My trouble is: I need the calculate the next Rafael's exam only based the last date.

The correct result is:

employeedate of examtypenext exam
Leonardo05/04/2024blood05/04/2025
Rafael05/04/2022blood 
Rafael05/04/2023blood 
Rafael05/04/2024blood05/04/2025

 

How can I do it on Power BI?

 

Sorry any mistake, I'm Brazilian and still learning english.

1 ACCEPTED SOLUTION
ThxAlot
Super User
Super User

ThxAlot_0-1712505457473.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LeanAndPractise(Everyday)


)



View solution in original post

4 REPLIES 4
ThxAlot
Super User
Super User

ThxAlot_0-1712505457473.png



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! 

tamerj1
Super User
Super User

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 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors