Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Arul
Super User
Super User

DAX Calculation

 

Screenshot (8).png

 

Hi all,

I want to count the super over by the match id. Here in the dataset they were given the particular column for the super over and if super over is bowled 1 was entered in the particular row for every ball of that super over with the respective match_id. 

NOTE: match_id was given to the every ball of the match. Pls refer the above image to solve my problem. 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


6 REPLIES 6
v-juanli-msft
Community Support
Community Support

Hi @Arul 

Per your requirement, you could create a column or a measure

Column = CALCULATE(SUM(Sheet2[is_super_over]),ALLEXCEPT(Sheet2,Sheet2[match_id]))

Measure = CALCULATE(SUM(Sheet2[is_super_over]),ALLEXCEPT(Sheet2,Sheet2[match_id]))

1.png2.png

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

But, It gave me the wrong result as 68.

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Hi @Arul 

Do you create a column or a measure?

Could you show an exmaple for me to work on?

It is better for you to share the screenshot which show the wrong result.

 

Best Regards

Maggie

Screenshot (11).png

This the result which i got when i used the formula which was shared by you.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Hi @Arul 

It seems "is_super_over" doesn't exsit in the same table with "match id".

Please let me know which table "is_super_over" lies and what relationship between two tables which  "is_super_over" column and "match id" column lie.

You could give me an simple data example.

 

Best Regards

Maggie

Hi @v-juanli-msft

 

They are in the same table only. 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors