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

View all the Fabric Data Days sessions on demand. View schedule

Reply
AnthonyJoseph
Resolver III
Resolver III

Need help please urgent : Sum/Display the value only based on condition

Hi Community,

 

I am struggling to find a solution for this for many days, and wanted to seek help in resolving this.

 

I have a table that has list of entities and their description and the values for the corresponding year. The request is to find the the entities that have common description across the years (years are selected from slicer). Below is the sample table:

 

AnthonyJoseph_0-1678433788605.png

 

when the years are selected from slicer (for example: 2020 and 2021) I should be seeing graph like the below table:

 

AnthonyJoseph_1-1678433862037.png

 

When the years 2021 and 2022 are selected then I should see the below as a table/graph:

 

AnthonyJoseph_2-1678433921192.png

 

When years (2020, 2021 and 2022) are selectd then the below  should apppear as table /graph.

 

AnthonyJoseph_3-1678433965678.png

 

 

Also, the year slicer can have any number of years and expectation is to display the entities that have description for all the selected years in bar chart.

 

Also, if there are more than 3 description items that are matching all the selected years then we should display only top 3 values for that entities that have description for all the selected years.

 

Please can anyone help me here...

 

Thanks,

AnthonyJoseph

 

4 REPLIES 4
FreemanZ
Super User
Super User

hi @AnthonyJoseph 

try like:

1). Plot a slicer with a calculated table with such code:
Slicer={2020, 2021, 2022}
2). Create a matrix visual as you like, 
3). Feed the filter pane with a measure like below and choose TRUE:
measure =
MAX(TableName[Year]) IN VALUES(Slicer[Value])

Hi @FreemanZ 

 

THanks, but it is not showing the expected values. The output table is showing True if any one of the value is in the slicers but in our case, it should be true only when all the years selected or in the entity/description.

 

AnthonyJoseph_0-1678437359024.png

Please can you help me in this.

andhiii079845
Solution Sage
Solution Sage

Did I understand you right, you select a year / some years and want to know only the entities which a represent in every year? Did are other tables involved ? Dimension table for the entities ? 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Yes your understanding is right.... I need to display the entites which matches all the years that are all selected ( not any one of the selected years).... Appreciate your help on this

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.