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
Anonymous
Not applicable

Sum of count for 24 months

Hello,

 

I need  help to solve the problem I am facing.

 

alpha_123_0-1634620103094.png

I have a slicer with year. When  I select two year the a time, I want to see the sum of count of Movement Type for same Material.

Example, For Material -100000, count of Movement Type is 2 for the year 2017 and count of Movement Type is 4 for the year 2018, While I select both 2017 & 2018 from the slicer I want to see the sum of count of Movement Type  2 & 4 for the Material -100000.

 

Can anyone help me with this?

4 REPLIES 4
VahidDM
Super User
Super User

Hi @Anonymous 

 

If year and Material are from same table and there is no other filter, then Try this:

 

Measure = count(table[Material])

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!

 

Anonymous
Not applicable

Hi @VahidDM , I need to do sum of count of Movement Type for two years when I select them from slicer

Hi, @Anonymous 

Replace you field 'count of movement type' with a new measure as below:

 

Measure = CALCULATE(COUNT('Table'[MovementType]),FILTER('Table','Table'[Year] in VALUES('Table 2'[Year])))

 

If it doesn't meet you requirement ,please share your sample file or relevant screenshot.

 

Best Regards,
Community Support Team _ Eason

Is that "count of Movement Type"  a measure or a column?

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