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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Vikas_Mattela
Frequent Visitor

How can I bifurcate years

Hi Community,

 

I got Min Date and Max Date in Summarize table, but when I showcasing this in Visual I would like to bifurcate in years.

 

As per below example, rep start date and end date is between 2019 and 2023. I would like to show the between days by bifurcating into different years.

Vikas_Mattela_0-1696566116047.png

 

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @Vikas_Mattela ,

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Ashish_Mathur
Super User
Super User

Hi,

My approach would be to split that one row into 1,473 rows (one row for each data which falls between the start and end date.  The fallout of this method would be Table bloat more so when this same action will be replicated on all rows in your table.  Would you be amenable to using this approach?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

You can use List.Generate in Power Query, or GENERATESERIES in DAX, or even CALENDAR.

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.