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
NLRI_78
Frequent Visitor

Multiple values error in calculate DAX

Hi there, 

 

This is my query on here, no doubt the first of many! 🙂

 

This should be a straightforward query to answer but any help will be greatly appreciated.

 

I've used the following DAX in previous reports but for some reason it is now working on my latest report. I have a line item report from our SAP system of all financial transactions for the year, I simply want to summarise it and then filter based on the period selected in order to update a YTD calculation.

 

The DAX I used is - 

YTD Actuals = CALCULATE(sum('New FPR'[Actuals]),'New FPR'[Fund Center Group] <> "Admin-Prog Hierarchy",'New FPR'[Dates.Period] <= VALUES('Date Updated'[Period]))
 
The New FPR is the SAP transactions, the Date Updated table is simply a 1 row table with the period I've updated the report to (so in this instance, it is period 12 but in future it will be 1, 2, 3 and so on. 
 
As I say, this has worked in the past and I simply update the date updated table and all of my DAX updates accordingly without the need to amend individually, so my run rate calculations etc.
 
Any help would be really appreciated. 
Thanks in advance
1 ACCEPTED SOLUTION

Thanks so much, that worked perfectly. No idea why it thought there was more than one row but clearly there must have been. 

 

Thanks again, really appreciate your help 🙂

View solution in original post

2 REPLIES 2
bcdobbs
Community Champion
Community Champion

Based only on your DAX my guess would be that 'Date Updated' currently has more than one row:

 

YTD Actuals =
CALCULATE (
    SUM ( 'New FPR'[Actuals] ),
    'New FPR'[Fund Center Group] <> "Admin-Prog Hierarchy",
    'New FPR'[Dates.Period] <= VALUES ( 'Date Updated'[Period] )
)

 

See if this works:

 

YTD Actuals =
CALCULATE (
    SUM ( 'New FPR'[Actuals] ),
    'New FPR'[Fund Center Group] <> "Admin-Prog Hierarchy",
    'New FPR'[Dates.Period] <= MAX ( 'Date Updated'[Period] )
)


Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Thanks so much, that worked perfectly. No idea why it thought there was more than one row but clearly there must have been. 

 

Thanks again, really appreciate your help 🙂

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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