Forum Discussion

Disturbx's avatar
Disturbx
Frequent Visitor
8 years ago

Calculating upcoming birthdays

Hi,

 

I wanna try the possibility of showing upcoming birthdays, with birthdays today.

With following;

-Name

-Birthday

-New age

 

This data is saved in Excel.

 

Is this possible in powerbi or do I need another solution.

Thanks.

2 Replies

  • v-sihou-msft's avatar
    v-sihou-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Disturbx

     

    What is your source data? And how many birthdays you want to repeat for same person? 

     

    Can you share your expected result?

     

    Regards,

  • Disturbx's avatar
    Disturbx
    Frequent Visitor

    v-sihou-msft

     

    My data source is an Excel file. Which has the following fields; Name, Birthday and Age.

    I want PowerBI to show the upcoming birthdays of the 7(or something) upcoming days.

     

    So when its my birthday in the coming days i wanna show something like this

     

    Upcoming birthdays

     

    Tristan - 21 Oct. - Age 24

    -

    -

    -

     

     

    This far, I got some help;

     

    Verjaardagen = VAR next = MINX(
    	FILTER(
    		Leerlingen;
    		MONTH(Leerlingen[Verjaardag]) >= MONTH(TODAY()) &&
    		DAY(Leerlingen[Verjaardag]) >= DAY(TODAY())
    	);
    	CALCULATE(
    		DATE(
    			YEAR(TODAY());
    			MONTH(MIN(Leerlingen[Verjaardag]));
    			DAY(MIN(Leerlingen[Verjaardag]))
    		)
    	)
    )
    RETURN CONCATENATEX(
    	FILTER(
    		'Leerlingen';
    		MONTH(Leerlingen[Verjaardag]) = MONTH(next) &&
    		DAY(Leerlingen[Verjaardag]) = DAY(next)
    	);
    	FIRSTNONBLANK(Leerlingen[Naam]; 1);
    	" " & UNICHAR(10) & " "
    ) 

    Which hows all names for todays birthdays, but without age etc.