Showing results for 
Search instead for 
Did you mean: 
bw70316 Member

DAX Returning only One Value instead of all

I have a budgetary report I have been working on and I have been working to get the Expenditure by Month by using the following equation:

Expensed Measure = SUM(Table1[Expensed])

Per Month total = CALCULATE([Expensed Measure],DATEADD(Table1[Exp Date],-1,MONTH))
Monthly Totals = [Expensed Measure]-[Per Month total]

This yields:


If change it to -2 I only get the correct data for September. How do I get ALL of the data? I have tried inputting an ALL funtion but can't figure it out. Also, I was able to get this to work with raw data, which means there could be something corrupted in my PBI report file?
dedelman_clng New Contributor
New Contributor

Re: DAX Returning only One Value instead of all

DATEADD(Table1[Exp Date],-1,MONTH) against Aug 31, 2018 literally brings back July 31, 2018, which you don't have in your dataset.


Create a calendar table ( DateTab = CALENDARAUTO() ) if you don't have one, and create a 1-to-many relationship between it and Exp Date.




Per Month total = CALCULATE([Expensed Measure], PREVIOUSMONTH(DateTab[Date]) )


If that doesn't work, please provide a sample of your raw data.


Hope this helps


Community Support Team
Community Support Team

Re: DAX Returning only One Value instead of all



Try using PREVIOUSMONTH instead of DATEADD and take a look at

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources


How to Get Your Question Answered Quickly

Power BI Super User, Greg Deckler, explains

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Ideas
Users Online
Currently online: 41 members 935 guests
Please welcome our newest community members: