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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Shaji
Helper I
Helper I

Quarter Wise Total number of Partner

Hi There

 

I have a table with PartnerID, Type, URL and Date Column.  Basically there are 3 types of Partners and I need the count of Total Partners Quarter Wise.

Table Name: Partners

Now I calculate the number of Partners using the below measures:

TotalPlatinumPartners = CALCULATE(DISTINCTCOUNT(Partners[Partner_id]), Partners[Type]="Platinum")
TotalGoldPartners = CALCULATE(DISTINCTCOUNT(Partners[Partner_id]), Partners[Type]="Gold")
TotalSilverPartners =
CALCULATE(
DISTINCTCOUNT(Partners[Partner_id]),
FILTER('Partners',[Type]="Silver"),
FILTER('Partners', Partners[Url] <> BLANK()),
FILTER('Partners', SEARCH( "127.0.0.1", 'Partners'[Url], 1, 0 ) = 0 ))

 

Now I get the TotalPartnerCount like this:

TotalPartners = [TotalPlatinumPartners]+[TotalGoldPartners]+[TotalSilverPartners]

 

My requirement now is to get the TotalPartners QuarterWise. i.e

FY20Q4=? FY20Q3=? FY20Q2=?  and FY20Q1=? 

 

Note: I get the Sales of Particular Partner Quarter wise using the below measure:

CurrentQtrPlatinumSales = CALCULATE(SUM(Partners[PlatinumSales]),FILTER(ALLSELECTED(Partners),Partners[NumericNewQuarterYear] = MAX(Partners[NumericNewQuarterYear])))

 

where NumericNewQuarterYear is the Date column. I tried to use the similar method to get the TotalPartner however i was not successful. Can anyone help me out in this situation?

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @Shaji ,

 

You may create a measure like DAX below.

 

CurrentQtrSales =
CALCULATE (
    SUM ( 'Partners'[PlatinumSales] ),
    FILTER (
        ALLEXCEPT ( 'Partners', 'Partners'[Type] ),
        YEAR ( 'Partners'[NumericNewQuarterYear] )
            = YEAR ( MAX ( 'Partners'[NumericNewQuarterYear] ) )
            && QUARTER ( 'Partners'[NumericNewQuarterYear] )
                = QUARTER ( MAX ( 'Partners'[NumericNewQuarterYear] ) )
            && 'Partners'[Url] <> BLANK ()
            && SEARCH ( "127.0.0.1", 'Partners'[Url], 1, 0 ) = 0
    )
)

 

Best Regards,

Amy 

 

Community Support Team _ Amy

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

4 REPLIES 4
v-xicai
Community Support
Community Support

Hi @Shaji ,

 

You may create a measure like DAX below.

 

CurrentQtrSales =
CALCULATE (
    SUM ( 'Partners'[PlatinumSales] ),
    FILTER (
        ALLEXCEPT ( 'Partners', 'Partners'[Type] ),
        YEAR ( 'Partners'[NumericNewQuarterYear] )
            = YEAR ( MAX ( 'Partners'[NumericNewQuarterYear] ) )
            && QUARTER ( 'Partners'[NumericNewQuarterYear] )
                = QUARTER ( MAX ( 'Partners'[NumericNewQuarterYear] ) )
            && 'Partners'[Url] <> BLANK ()
            && SEARCH ( "127.0.0.1", 'Partners'[Url], 1, 0 ) = 0
    )
)

 

Best Regards,

Amy 

 

Community Support Team _ Amy

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

Shaji
Helper I
Helper I

Anybody who can help here??? Waiting for your help

amitchandak
Super User
Super User

@Shaji , Not very clear.Can you explain

In case you need this qtr vs last qtr

With Date or Qtr Table

 

QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(('Date'[Date])))
Last QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(dateadd('Date'[Date],-1,QUARTER)))

Last complete QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD( ENDOFQUARTER(dateadd('Date'[Date],-1,QUARTER))))


//Can work with Qtr and Date table
Column in Date/Qtr 
Qtr Rank = RANKX(all('Date'),'Date'[Qtr Start date],,ASC,Dense)	

This Qtr = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Qtr Rank]=max('Date'[Qtr Rank])))
Last Qtr = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Qtr Rank]=max('Date'[Qtr Rank])-1))
Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi Amit, 

 

May be I should I have explained it more clearly.

 

My requirement is to get the TotalPartners QuarterWise. i.e

FY20Q4=? FY20Q3=? FY20Q2=?  and FY20Q1=? 

 

I was able to get the Sales Amount Quarter Wise which I have mentioned above with the Measure. Now I want the number of Partners Quarter Wise. 

 

Total Number of Partners in

FY20Q4 = ?

FY20Q3 = ? 

FY20Q2 =? 

and FY20Q1=? 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors