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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
ruinaldo
Helper II
Helper II

Help with measure distinct positive and negative acumulated values

I have a table with 4 distinct names per month.

i want to only consider the names begins with 22, and the only acumulated positive values per month and name.

Above i report the expected result.

ruinaldo_0-1605095816858.png

 

5 REPLIES 5
Anonymous
Not applicable

Hi @ruinaldo ,

 

Sorry to disturb you again...

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.

 

Best Regards,
Eyelyn Qin

ruinaldo
Helper II
Helper II

i try this formula and result the filter for the name 22.

In visual for the month january it´s all ok, i only have positive values in "22-green" and is 10

but how can i do it for a card? i don´t want 4 in result but 10

ruinaldo_0-1605114269200.png

Anonymous
Not applicable

Hi @ruinaldo ,

 

You could use the following formula to create new measure for Card visual:

Measure2 = MAXX(FILTER(ALL('Table'),'Table'[Name]="22-green"),[Measure])

 

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.

 

Best Regards,
Eyelyn Qin

 

amitchandak
Super User
Super User

@ruinaldo , Try a measure like

calculate(sum(Table[Value]),filter(Table, left(Table[name],2)= "22" && Table[Value]>0))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi,

Thanks for your help. But didn´t work,

The result is:

ruinaldo_0-1605103824328.png

i expected in april 22green= 10 and 22red = 1

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors