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

Measure doesn't allow right report slicing

Hi Community,

 

I have two dim tables- Datedim & Empdim. Empdim is related to two other tables. There is a measure 'Hrs Productivity' in empdim that I have on a matrix layout. This measure is not slicing the year/months properly: for example if 2021 is selected, the measure makes the data to be displayed for prior months/year.

 

Capture_103.PNG

Here is my Pbi file: https://1drv.ms/u/s!Ag919_pO_UKrgReCwuTjqZXdT9fW?e=HGZjvg

 

Many thanks in advance,

1 ACCEPTED SOLUTION
aj1973
Community Champion
Community Champion

Ok 2 things to change

aj1973_7-1615856906310.png

 

Use Date hierarchie in your Matrix and Also date hierachie in your Slicer Year(don't Use column Year

 

Voila

 

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

View solution in original post

5 REPLIES 5
aj1973
Community Champion
Community Champion

Hi @Anonymous 

Trying to understand your issue, is it why the cells are empty when you select 2021? if so what are you expecting to see?

 

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Anonymous
Not applicable

@aj1973  No this is not the case. The issue happens when I bring in the measure 'Hrs Productivity' from Empdim table on to the matrix. Please check my PBI file in the post.

If I create 'Hrs Productivity' in any of the other 2 tables (Query1 & Hrs_worked, relating to Empdim) then it resolves the issue of incorrect slicing but I get incomplete data.

aj1973
Community Champion
Community Champion

I did, that's why I am asking and you are not telling what you want to see!!

aj1973_0-1615853899758.png

 

Ok Play with your 'a'  variable maybe I am close to understand what you are looking for

 

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Anonymous
Not applicable

@aj1973 thanks for replying. What I expect is: when 2021 & all the months are selected, then data for only 2021 Jan,feb & march should be displayed in the matrix The issue is that its displaying 2020 data as well. It was displaying data beyond March 2021, that I handled by including the following 'If' condition in the measure:

1603.PNG

aj1973
Community Champion
Community Champion

Ok 2 things to change

aj1973_7-1615856906310.png

 

Use Date hierarchie in your Matrix and Also date hierachie in your Slicer Year(don't Use column Year

 

Voila

 

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

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