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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ZhenyuLei
Regular Visitor

Deduplicate by Contract Number And Sequence Number when adding Revenue from multiple Tables

Hi,

I have a main Revenue table and four different topic tables with their own Revenue tables linked:

  • CCA -> Revenue(Signup&CCA)
  • CashSignUp -> Revenue(Signup&CCA)
  • CallData -> Revenue(Call)
  • Leads & Tradeshow -> Revenue(Leads & Tradeshow)
  • Main Revenue Table: Revenue(eComm Total & NoneComm NEW)

And I have created Revenue measures in those topic tables:

For example

In CashSignUp:

  • SignUp_Revenue =CALCULATE(SUM('Revenue(Signup&CCA)'[Revenue]),CashSignUp[Cash_Join_ID] <> "_")
  • SignUp_Revenue SameMonth =

SUMX (

    FILTER (

        SUMMARIZECOLUMNS (

            'Revenue(Signup&CCA)'[ContractDateOut],

            CashSignUp[TimeStampCreated],

            "@revenue", CALCULATE ( CashSignUp[SignUp_Revenue] )

        ),

        EOMONTH ( 'Revenue(Signup&CCA)'[ContractDateOut], 0 ) = EOMONTH ( CashSignUp[TimeStampCreated], 0 )

    ),

    [@revenue]

)

 

 

Now I want to write a DAX for "total Revenue Same Month", it needs to be revenue by ContractNumber and  SequenceNumber from all those four Revenue tables, I can't simply add those "revenue same month" together because there might be duplicates across those four revenue tables, the same contract and sequence could exist in one or two or three or four revenue tables. So I need to deduplicate when adding, and I want to keep the "same month" logic. Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ZhenyuLei,

 

Thank you for reaching out to Microsoft Fabric Community Forum.

 

Please find attached pbix file

In a real scenario, dates repeat in Revenue tables → relationship should be One-to-Many.

vvpabbu_0-1747388032159.png

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!


Regards,
Vinay Pabbu

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @ZhenyuLei,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,
Vinay Pabbu

Anonymous
Not applicable

Hi @ZhenyuLei,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,
Vinay Pabbu

Anonymous
Not applicable

Hi @ZhenyuLei,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,
Vinay Pabbu

Anonymous
Not applicable

Hi @ZhenyuLei,

 

Thank you for reaching out to Microsoft Fabric Community Forum.

 

Please find attached pbix file

In a real scenario, dates repeat in Revenue tables → relationship should be One-to-Many.

vvpabbu_0-1747388032159.png

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!


Regards,
Vinay Pabbu

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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