Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in BI by (11.1k points)

I am using the following Power BI Formula:

prices = SUM(Testing[price])

comulativetest = CALCULATE([prices],FILTER(Testing,EARLIER(Testing[Date])>=Testing[Date]))

I am facing an error

enter image description here 

1 Answer

0 votes
by (22.5k points)

Use one-to-many join and use measure like this:

comulativetest :=
CALCULATE (
    [prices],
    FILTER (
        ALL ( Dates ),
        Dates[Date] <= MAX ( Dates[Date] )
    )
)

If you want to learn more about Power BI, then read the Power BI Tutorial.

Also, enroll in Power BI online Training to become proficient in this BI tool.

Related questions

0 votes
1 answer
asked Dec 21, 2020 in BI by Chris (11.1k points)
0 votes
1 answer
asked Dec 1, 2020 in BI by Chris (11.1k points)
0 votes
1 answer
asked Dec 1, 2020 in BI by Chris (11.1k points)
0 votes
1 answer
asked Nov 30, 2020 in BI by Chris (11.1k points)

Browse Categories

...