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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jonnyA
Responsive Resident
Responsive Resident

I have one total that is not summing

@parry2k 

Hello again,

I have a matrix where only one of my "Co Sign Amount" is not summing in the total.  Do you know how I can make it sum?  It is currently off $25.

Here is the formula that I am using for the "Co Sign Amount" ...

Provider Payout =

VAR ProviderPayout =

SUMMARIZE(Sheet1, Sheet1[Co-Sign Bonus], "Billed CPT",

[Visits] * [CPT Co Sign Value] )

RETURN

SUMX(ProviderPayout,

IF([CPT Co Sign Value]>=0, [Visits] * [CPT Co Sign Value]))

But for some reason it is not summing one of these $25 ...

1 ACCEPTED SOLUTION
jonnyA
Responsive Resident
Responsive Resident

@Icey

Thank you for responding!  Your formula did not work.  

Here is a formula that did work ...

Provider Payout 5 = SUMX(Sheet1, [If measure])
 
If Measure = IF([CPT Co Sign Value]>=0, [Visits] * [CPT Co Sign Value])

View solution in original post

7 REPLIES 7
PhilipTreacy
Super User
Super User

@jonnyA 

We really need the raw data. Screenshots are useful to get an idea of the issue but you can't expect us to recreate your entire dataset to try to figure out the issue.

regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


@PhilipTreacy 

 

Here is a formula that did work ... via @parry2k 

Provider Payout 5 = SUMX(Sheet1, [If measure])
 
If Measure = IF([CPT Co Sign Value]>=0, [Visits] * [CPT Co Sign Value]
Icey
Community Support
Community Support

Hi @jonnyA ,

 

Glad to hear that. Please accept your reply as a solution so that people who may have the same question can get the solution directly.😉

 

 

Best Regards,

Icey

Icey
Community Support
Community Support

Hi @jonnyA ,

 

The total values are no problem. Please check if this measure gives you the expected results.

Provider Payout =
VAR ProviderPayout =
    FILTER (
        SUMMARIZE (
            Sheet1,
            Sheet1[Co-Sign Bonus],
            "Billed CPT", [Visits] * [CPT Co Sign Value]
        ),
        [Billed CPT] > 0
    )
RETURN
    SUMX ( ProviderPayout, [Billed CPT] )

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

 

jonnyA
Responsive Resident
Responsive Resident

@Icey

Thank you for responding!  Your formula did not work.  

Here is a formula that did work ...

Provider Payout 5 = SUMX(Sheet1, [If measure])
 
If Measure = IF([CPT Co Sign Value]>=0, [Visits] * [CPT Co Sign Value])
parry2k
Super User
Super User

@jonnyA share sample pbix file with the expected output, it is very hard to tell by looking at the code.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

jonnyA
Responsive Resident
Responsive Resident

 

@parry2k , Does this photo help?  Is this what you are looking for?

jonnyA_1-1611767174030.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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