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
elaj
Helper IV
Helper IV

calculate sum of categories and return the minimum of it

Hi,

 

i have data like this: 

the measure is a counta measure.. so it counts the occurrences of cat by month and cat itself.

image.png

and now want to have a new table which shows me the minimum (sum) value of all categories per month.

it would be feb = 3, jan = 2, mar = 1.

 

i really dont know how to do it.

someone has an idea?

 

pbix

 

thanks for help

 

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

A measure like this :

MeasureX = MINX(Tabelle, [count])

Put it in a table with 'wave' 

View solution in original post

2 REPLIES 2
iXpert_info
Helper II
Helper II

Hello @elaj 

Just unpivot your above table and that way your months will become attributes and counts will become value
and create calculated column 
MinCount = Calculate(table[Value]), filter(table, table[month]=Earlier(table[Month])))
iXpert_Solution 

Best Regards
Jay Patel

Did I answer your question? Please mark my answer as solution

HotChilli
Super User
Super User

A measure like this :

MeasureX = MINX(Tabelle, [count])

Put it in a table with 'wave' 

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.