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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
HMAnnex
Frequent Visitor

Calculate dynamic measure

Hi Guys, 

 

I have a matrix of names with different team and I'm trying to create a measure where it will calculate their total score - team score dynamically. 

 

ATM, this is the measure :

personal_score = [totalscore]-IF(MAX(Teams[Team])="A",[A_Count],[B_Count])

 

but this is just giving me their score -1

 

So im basically stuck right now. Thank you.

personal_score = CALCULATE([totalscore]-IF(MAX(Teams[Team])="A",[A_Count],[B_Count]),ALLSELECTED(Teams))
This is giving me all the total score of the team
 
NameTeam
Tonya
Connora
Steveb
Janeb
Annea
 HMAnnex_0-1715587600177.png

 

I have a measure where to calculate what is the total team average which is something like:

a= CALCULATE([totalscore], FILTER(Teams,Teams[Team]="A"))+0
b= CALCULATE([totalscore], FILTER(Teams,Teams[Team]="A"))+0
 
 
 
1 REPLY 1
_AAndrade
Super User
Super User

Hi @HMAnnex,

Could you please provide more information? For example, some data of your model and the expeted result you are looking for.

Please take a look at this two post how to share data table:
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

 





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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