March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I've tried a few different things and I'm stuck. I think it might have to do with how my tables are related, but not sure.
I have this measure:
Here are my other measures:
Hi @Auto_queen
please try
TEST GP =
SUMX (
VALUES ( 'Table'[Name] ),
IF (
[Total Credit] <> [Total Adjust Fee Amount],
[Collected GP],
CALCULATE ( SUM ( 'Gross Profit'[TR1__GP_Amount__c] ) )
)
)
Sorry I should have said I tried that already and it did not work. It gave me a larger number 705917.60
Yes.
Collections table > Invoice Table (Many to One)
Collections is where I get the Total Credit measure.
Invoice Table > Closing Report Table (Many to One)
Closing report table is where I get the Total Adjust Fee Amount measure.
Gross Profit Table > Closing Report Table (Many to One)
Gross Profit table is where I get the closing report split measure and the total gp measure.
They are all active relationships.
@Auto_queen
There is no issue with the model. The 'Closing Report' table is dimention table that is filtering other tables. I think the problem is somehow comming from the HASONEFILTER conditions in the sub-measures.
Actually, looking at my table again, I think the error is with my "Total Adjust Fee Amount" measure.
When I have the "Name" column in the table that measure matches my total credit measure. When I take the "Name" column out the total adjust fee amount changes to 1,683,651. So, TEST GP formula is working because the total credit <> total adjust fee amount.
I just tried this formula change but it didn't work. Any suggestions? I appreciate your help through this.
Okay let me play around with those. I know there was a reason why I added that in there, but maybe the SUMX(VALUES) is all I need...
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
12 | |
9 | |
7 |
User | Count |
---|---|
38 | |
32 | |
28 | |
12 | |
11 |