문제

I am new to DAX, How can I calculate the runs of a particular player from below table. My table name PlayersData. For example, want to the total runs of the sachin tendulkar from the table. Need Dax formula..

I tried this for getting the occurrences of virat Kohli in the table:

:=COUNTROWS(VALUE(PlayersData[Name] = "Virat Kohli"))

But , it shows the Error..

Thanks in advance...

Excel Table

도움이 되었습니까?

해결책

Finally the Query given my required result:

TotalRunsOfKohli:=CALCULATE(SUM('Players Data'[Runs]),'Players Data'[Name]="Virat Kohli")

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top