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
mcornfield
Helper III
Helper III

DAX SUM of Measure HELP

I am trying to calculate Sum of Closed Accounts by Month-year.

I have a column of Dates for the last invoice date for all our customers.

I Created 2 Measures

9. Lastnonblank = CALCULATE(MAX(Dates[Date]),LASTNONBLANK(Dates[Date],[Invoice Count]))

Days from Last Invoice= VALUE(Today()-[9. Lastnonblank])

Now I need to get a SUM by Month-Year

I keep getting TOTAL for some reason HELP

mcornfield_0-1638880567440.png

 

 

4 REPLIES 4
v-yetao1-msft
Community Support
Community Support

Hi @mcornfield 

Has your problem been solved ? If it has been solved, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regard

Community Support Team _ Ailsa Tao

v-yetao1-msft
Community Support
Community Support

Hi @mcornfield 

Please try this formula ,count the number of [IF TEST2] group by month .

IF TEST3= CALCULATE(SUM(IF TEST2),FILTER(ALLEXCEPT(TABLE,TABLE(MONTH))))

Best Regard

Community Support Team _ Ailsa Tao

amitchandak
Super User
Super User

@mcornfield , Not very clear what the ask is, but data for the last date of the month

 

CALCULATE(Sumx(Values(Dates[Month Year]),LASTNONBLANK(Dates[Date],[Invoice Count])) )

Hello, THank you for your reply. I might have gotten myself in a Worm Hole.

 

The question I am trying to answer is "BY Month-Year How Many Accounts have Closed?"

 

We say if they haven't had an invoice in 90 days they are counted as closed.

 

So i have last Invoice data by Customer. Then i subtract that from today. If its over 90 days then i want to count it and look at it by month-year. 

 

But my formula seems to show the total and doesn't sum by month-year

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.