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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Juju-PowerBI
Frequent Visitor

Generate each trimester of the year

Hi,

 

I am looking to write a formula that will allow me to generate, for each date, all the trimester date, starting and ending date.

Is it possible ? 

 

Like the example below 

1625573670248_DATE.PNG

 

Thanks

1 ACCEPTED SOLUTION

Hi @Juju-PowerBI ,

 

Yes,it can,but the process would be a little complicated,I would recommend using dax to realize it.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

View solution in original post

4 REPLIES 4
v-kelly-msft
Community Support
Community Support

Hi  @Juju-PowerBI ,

 

You could realize it using dax formula:

Create a table as below:

Table 2 = ADDCOLUMNS( CALENDAR(DATE(YEAR(MIN('Table'[Date])),1,1),DATE(YEAR(MAX('Table'[Date])),12,31)),"Quarter","T"&QUARTER(''[Date]),"Year",YEAR(''[Date]))

Then create a relationship between column year:

vkellymsft_1-1625739314987.png

 

And you will see:

vkellymsft_3-1625739408615.png

 

 

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

 

Hi @v-kelly-msft ,

 

Many thanks for the solution,

 

Do you know if it is also possible to do this in power query ?

 

Thanks you

Regard,

Hi @Juju-PowerBI ,

 

Yes,it can,but the process would be a little complicated,I would recommend using dax to realize it.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

mahoneypat
Employee
Employee

This is doable in power query, but what do you plan to do with this table once generated?  You might want to consider making a simple Date table that has a Trimester column in it with T1, T2, T3, and making a relationship from the Date table to your data table via the Date column.  This will be simpler in terms of analysis and visualization than the table you've requested.  However, there may be a great use case for it.  Just checking.

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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
Top Kudoed Authors