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
Anonymous
Not applicable

Assigning Names to time periods

Hi,

I am new and working the last 2 weeks on a projekt with Power BI.

I have different data from a system of a university. Is it possible to assign pre defined time periods (e.g. 1.10.2021 to 31.03.2021) a special name (WS20/21). I want to check this for the last six periods.

So each one of the different persiods is to be checked in the CREATE column and the NAME is to be inserted accordingly.

 

I need this to show the data for each semester of the university how specific activities developed.

 

Has someone an idea?

Cheers

1 ACCEPTED SOLUTION
BeaBF
Impactful Individual
Impactful Individual

@Anonymous  Ok, easy. You can't write first a string like the period name, and as if false a decimal numer. Try with "0", instead of 0. 

 

B.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

tacktick_0-1642690797799.png

Thank you, on the first view, this might solve the problem, but I have the problem to get the different formates together.

If I use der notation with dots, it doesn't work, with DATE the following problem comes up. 😞 mabe yyou have also a solution for this?

BeaBF
Impactful Individual
Impactful Individual

@Anonymous  Check the column DATE type, it must be in Data Type: Date. Click on the column and then in the section Column Tools of the menù. The formula should then be correct.

 

B.

Anonymous
Not applicable

tacktick_0-1642693017244.png

I made a new column and the type is DATE. Now the next error message came up.

BeaBF
Impactful Individual
Impactful Individual

@Anonymous  Ok, easy. You can't write first a string like the period name, and as if false a decimal numer. Try with "0", instead of 0. 

 

B.

BeaBF
Impactful Individual
Impactful Individual

Hi @Anonymous !

You can create a new column with some if conditions, like:

= IF ([date] >=   1.10.2021 && [date] <= 31.03.2021, "WS20/21", IF ([date] >= tot && [date]<= tot, "NAME_PERIOD", IF(.....)))

 

If this is not what you were looking for, I ask you to put some data and the result you expect, so as to better understand.

 

B.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors