Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I have created a running total DAX formula as below:
RunningTotal = CALCULATE( SUM( Opportunity[Sales Price (DKK)] ); FILTER( ALLSELECTED( Opportunity ); Opportunity[Close Date] <= MAX( Opportunity[Close Date] ) ) )
That formula works. However, I would like to add the filter below as well - but I can't seem to get that working:
Opportunity[Pipeline Category] = "Won"
Any input is appreciated.
Solved! Go to Solution.
@nielfxrm Please try changing the SUM function inside the CALCULATE as below:
SUMX(FILTER(Opportunity, Opportunity[Pipeline Category] = "Won"), Opportunity[Sales Price (DKK)])
Proud to be a PBI Community Champion
I tried to following this method but get an error
If i remove the " ;" then it tells me the Fileter argument is incorrect
@nielfxrm Please try changing the SUM function inside the CALCULATE as below:
SUMX(FILTER(Opportunity, Opportunity[Pipeline Category] = "Won"), Opportunity[Sales Price (DKK)])
Proud to be a PBI Community Champion
Thanks @PattemManohar. That did the job.
I was trying to add the filter somewhere else in the formula.
Cheers.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
68 | |
53 | |
53 | |
36 | |
34 |
User | Count |
---|---|
84 | |
71 | |
55 | |
45 | |
43 |