Back

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

How running total returns the same value in Power Bi

TicketClosed_Total = 
CALCULATE(
    [TotalTicket_Pending],     
    FILTER(
        ALL('Ticket'[CompletedDate]),
        'Ticket'[CompletedDate] <= MAX('Ticket'[CompletedDate])
    )
)

TicketClosed_DateTbl = 
CALCULATE(
    [TicketClosed_Total],
    USERELATIONSHIP('Date'[Date_1],'Ticket'[CompletedDate])
)

I am using this formula and cannot able to return the value I wanr

How can solve this? 

1 Answer

0 votes
by (22.5k points)

Follow the basic two measures

cum_total_ticket = 
CALCULATE(
    SUM(Ticket[total ticket]),
    FILTER(
        ALL(Ticket),
        Ticket[CompletedDate] <= MIN(Ticket[CompletedDate])
    )
)
cum_sold_ticket = 
CALCULATE(
    IF(
        SUM(Ticket[sold ticket]) = BLANK(),
        0,
        SUM(Ticket[sold ticket])
    ),
    FILTER(
        ALL(Ticket),
        Ticket[CompletedDate] <= MIN(Ticket[CompletedDate])
    ) 

) 

Check the power bi training provided by intellipaat 

Also, check the youtube video 

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...