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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Aydeedglz
Helper V
Helper V

Measure returning count instead of value

Hi I am creating a mesaure to see my total sales by specific month, but the result is a COUNT and I want the SUM, but I can't see the data that way. I have treid in measure and quick measure and is not working.

 

I have my data en decimal number and date, any ideas how to change the result to a sum instead of a count? thanks 

 

Aydeedglz_0-1671571693979.png

 

4 REPLIES 4
Anonymous
Not applicable

can you provide some sample data with your formula?

 

To my understanding CALCULATE(SUM()) and SUMX() are essentially the same thing. In your Calculate(SUM()) statement you're not passing a filter condition. From DAX: Calculate(<Expression>, <Filter1>, <Filter2>, etc.)

 

I would expect the formula to look more like this (assuming your [Two Months Back] is a binary column):

Sum of Past Due_M total for Two Months Back = 
CALCULATE(
     SUM('LND_SPF_PDReport'[Past Due_M]),
        'LND_SPF_PDReport'[Two Months Back] = 1
)

 

CALCULATE function (DAX) - DAX | Microsoft Learn

Hi,

 

The two months back is the month, example if today is December 2022 is going to be October 2022

 

I have tried your formula, but I still have a Blank result in my measure 

Aydeedglz_0-1672268235706.png

 

nick_potts
New Member

Just making sure, Past Due_M is a number type right? What is the filter expression? It looks like you need to add some boolean expression there. If Past Due_M is an integer then SUM() should be working.

Yes, PAST DUE is number and decimal, but I still have a count as a result

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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