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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Measure that adjusts with filters

Hey guys, 

Stephendalton12_1-1716951511204.png

 

 

In my initial data, I have a bet account number and a row for every day along with the sport that they bet on and a few more dimensions, I then have a few numerical measures such as margin after specials (above).

Now when I apply different filters, Power BI will sum up the values to give the correct number for the filters I choose.

 

The issue I have is that I need to find a count of the account numbers that sit in a negative balance. For that I need to create a measure that sums the margin for every account number and that number will change depending on the filters applied.

 

Essentially the measure should store whatever number is connected to the account number in the table above.

 

Can anybody help me ?

 

 

 

1 ACCEPTED SOLUTION
vicky_
Super User
Super User

Try something like the below:

Measure = COUNTROWS(FILTER(ADDCOLUMNS(VALUES(Table[Bet_Account_Num]), "Margin", CALCULATE(SUM(Table[Margin_After_Specials])), [Margin] < 0)

View solution in original post

1 REPLY 1
vicky_
Super User
Super User

Try something like the below:

Measure = COUNTROWS(FILTER(ADDCOLUMNS(VALUES(Table[Bet_Account_Num]), "Margin", CALCULATE(SUM(Table[Margin_After_Specials])), [Margin] < 0)

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.