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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-eqin-msft
Community Support
Community Support

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

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))

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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