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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Mawriz
Frequent Visitor

Split Half Years Into Quarters

Hi,

 

I am a biginner user of Power BI and I am not even sure if this is the right place to ask this question. But the problem is as shown in the  photo.

Mawriz_0-1640209412553.png

 

The data is in half years (ofcourse this data is huge but I am using just this one row to demonstrate). I want to divide the half years into quaters( I do not know how to go about it in either of power query or DAX).

2 REPLIES 2
v-yingjl
Community Support
Community Support

Hi @Mawriz ,

The new Date column's logic is like @ Mawriz mentioned to create:

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WCinNS80xMFLSUTIyMDLWN9c3BDJNDAwMlGJjAQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Rate = _t, Date = _t, Tons = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Rate", type text}, {"Date", type date}, {"Tons", Int64.Type}}),
    #"Added Custom" = Table.AddColumn(#"Changed Type", "New Date", each {Date.AddMonths([Date], -3), [Date]}),
    #"Expanded New Date" = Table.ExpandListColumn(#"Added Custom", "New Date"),
    #"Removed Columns" = Table.RemoveColumns(#"Expanded New Date",{"Date"}),
    #"Changed Type1" = Table.TransformColumnTypes(#"Removed Columns",{{"New Date", type date}})
in
    #"Changed Type1"

vyingjl_0-1640586876509.png

But still not certain the logic that you want to calculate 44.44 and 43.95.

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

AlexisOlson
Super User
Super User

Take a look at my answer to this similar question earlier today:
https://community.powerbi.com/t5/Power-Query/Repeat-quarterly-results-for-every-month/m-p/2252280

 

That same sort of logic should work except for the Tons part. How are you transforming 4000 into 44.44 and 43.95?

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.