Showing results for 
Search instead for 
Did you mean: 
ajinkya1907 Regular Visitor
Regular Visitor

Display the list

Dear Friends,


I am using IPL Crikcet Data set which can be found on


I would like to calculate Team's latest form (Latest 5 Matches)


That is Team Name = Win Win Lost Win Lost


Latest Form =

var team = SELECTCOLUMNS(matches,"Team1",matches[winner])


var temp = FILTER(SUMMARIZE(matches,
"form", IF(COUNT(matches[winner])>0,"W","L")),
(CALCULATE(COUNTROWS(ALLSELECTED(matches)),FILTER(ALLSELECTED(matches),matches[team1]=team)) +
) >=1 )

return MAXX(TOPN(5,temp,[date],DESC),[form])


This calculated measure is giving an error. I even tried creating Table but still getting the same error. Kindly suggest possible solution.


@Zubair_Muhammad - Tagging you explicitely as you know the dataset and also cricket very well 🙂




Accepted Solutions
Super User
Super User

Re: Display the list

Super User
Super User

Re: Display the list

Hi @ajinkya1907


Try this MEASURE. then Put it in a TABLE VISUAL with TEAM 1


Measure =
    TOPN ( 5, matches, [date], DESC ),
    IF (
        CALCULATE ( VALUES ( matches[winner] ) ) = SELECTEDVALUE ( matches[team1] ),
    " ",
    [date], DESC
Super User
Super User

Re: Display the list

Helpful resources

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 50 members 935 guests
Please welcome our newest community members: