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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Yarafat
Frequent Visitor

How to make a measure of 4 quarter for a single month

Hi Team,

 

I want to make a measure of Month Quarter. Like I want a month will showing as a 4 Quarter. 

 

01/08/2018 to 08/08/2018 = Q-1,

01/08/2018 to 15/08/2018 = Q-2,

01/08/2018 to 25/08/2018 = Q-3, 

01/08/2018 to 31/08/2018 = Q-4,

 

Please help me to Make this Measure. Thanks in Advance.

(Note: i am using Azure database so i don't have any access to create a table in database.)

 

Regards,

Yeasin 

1 ACCEPTED SOLUTION

Hi Yarafat,

 

You can add a calculated column using this formula.

Column =
SWITCH (
    TRUE (),
    DAY ( [Date] ) <= 8, "Q-1",
    DAY ( [Date] ) <= 15, "Q-2",
    DAY ( [Date] ) <= 25, "Q-3",
    "Q-4"
)

How_to_make_a_measure_of_4_quarter_for_a_single_month3

 

Best Regards,

Dale

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

View solution in original post

8 REPLIES 8
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi Yeasin,

 

Please refer to a solution below. If you need more details, please provide a dummy sample file. You can find a demo in the attachment.

1. It's obvious that you want to plot the quarters in a visual. So create a quarter table first. (The Start isn't compulsive.)

How_to_make_a_measure_of_4_quarter_for_a_single_month

2. Don't establish any relationships with other tables. 

3. Create a measure. 

Measure =
CALCULATE (
    SUM ( FactTable[Value] ),
    FILTER (
        FactTable,
        'FactTable'[Date] >= MIN ( QuarterTable[Start] )
            && 'FactTable'[Date] <= MIN ( QuarterTable[End] )
    )
)

How_to_make_a_measure_of_4_quarter_for_a_single_month2

 

Best Regards,

Dale

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

Hi 

 

Thanks for the Update. I have tried to do same but i can't defined quarter for every month. i am sharing some sample data with you. 

i am working with Sales Data, here Data is coming every month, every day but need to see the Quarter wise IMS of sales. What is the ims for First Quarter and is for next quater.

 

Here the sample file share link : "https://drive.google.com/open?id=1JcQKHCOaktUgLHkn_IGoUKJ3JANWgfud"

 

Regards,

Yeasin


@v-jiascu-msft wrote:

Hi Yeasin,

 

Please refer to a solution below. If you need more details, please provide a dummy sample file. You can find a demo in the attachment.

1. It's obvious that you want to plot the quarters in a visual. So create a quarter table first. (The Start isn't compulsive.)

How_to_make_a_measure_of_4_quarter_for_a_single_month

2. Don't establish any relationships with other tables. 

3. Create a measure. 

Measure =
CALCULATE (
    SUM ( FactTable[Value] ),
    FILTER (
        FactTable,
        'FactTable'[Date] >= MIN ( QuarterTable[Start] )
            && 'FactTable'[Date] <= MIN ( QuarterTable[End] )
    )
)

How_to_make_a_measure_of_4_quarter_for_a_single_month2

 

Best Regards,

Dale


 

Hi @Yarafat,

 

How can we define the quarters when there is more than one month? There are only four quarters or there are four quarters every month. For example,

07 Q-1

07 Q-2

07 Q-3

07 Q-4

08 Q-1

08 Q-2

... ...

 

Best Regards,

Dale

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

Hello Dale,

 

I need 4 quarters for every month. As you share here. How can i create it without assign 4 quaters Manually. 

For example: 

I will set filter option in my report 1. Year Month. 2. By quaters. 

 

When i select 07 ( Year Month) then it will set Quaters for only this Month. If we select all month then it will set for All month.

 

(I can not set it manully because of I have Data from 2000/01/01.)

 

Regards,

Yarafat

Hi Yarafat,

 

You can add a calculated column using this formula.

Column =
SWITCH (
    TRUE (),
    DAY ( [Date] ) <= 8, "Q-1",
    DAY ( [Date] ) <= 15, "Q-2",
    DAY ( [Date] ) <= 25, "Q-3",
    "Q-4"
)

How_to_make_a_measure_of_4_quarter_for_a_single_month3

 

Best Regards,

Dale

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

Hello Dale,

 

Thanks for your reply. Can you please share with me the Sample PBIX file for this. it will be very helpfull for me.  i already share with you my data file. 

 

Regards,

Yeasin

Hi Yeasin,

 

Please check out the attachment.

 

Best Regards,

Dale

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

Hello Dale,

 

Thank you so much. 🙂 

 

Regards,

Yeasin

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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