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.
Solved! Go to Solution.
Hi @bolabuga
Beacuse the filter context is based on YearMonth so only those records that match the YearMonth Slicer on the right side will be retrieved.
Try the following
1. Create a table called MonthTable = summarize ('SAMPLE',[YearMonth])
2. This should be a stand alone table and not connected to your SAMPLE table.
3. Make changes to your measures
COUNT SUBCATEGORY = Calculate (COUNTA('SAMPLE'[SUBCATEGORY]),FILTER('SAMPLE','SAMPLE'[YEARMONTH] =MAX('Calendar'[YEARMONTH]) ))
4. YEAR TO DATE COUNT SUBCATEGORY = Calculate(COUNTA([SUBCATEGORY]),FILTER('SAMPLE','SAMPLE'[YEARMONTH] <=MAX('Calendar'[YEARMONTH]) ))
Now use the YearMonth from the MonthTable to create the slicer and the matrix preview table as already done.
If this works for you accept this as a solution and also give KUDOS.
Cheers
CheenuSing
any suggestion?
Hi @bolabuga
Beacuse the filter context is based on YearMonth so only those records that match the YearMonth Slicer on the right side will be retrieved.
Try the following
1. Create a table called MonthTable = summarize ('SAMPLE',[YearMonth])
2. This should be a stand alone table and not connected to your SAMPLE table.
3. Make changes to your measures
COUNT SUBCATEGORY = Calculate (COUNTA('SAMPLE'[SUBCATEGORY]),FILTER('SAMPLE','SAMPLE'[YEARMONTH] =MAX('Calendar'[YEARMONTH]) ))
4. YEAR TO DATE COUNT SUBCATEGORY = Calculate(COUNTA([SUBCATEGORY]),FILTER('SAMPLE','SAMPLE'[YEARMONTH] <=MAX('Calendar'[YEARMONTH]) ))
Now use the YearMonth from the MonthTable to create the slicer and the matrix preview table as already done.
If this works for you accept this as a solution and also give KUDOS.
Cheers
CheenuSing
I'm still not clear about your requirement.
Can you share some sample data and screenshots?
Regards,
hehe sorry, i posted initially from my work place and the forum features are not working from there.
here is the link for a sample: https://drive.google.com/open?id=0B8Aq8DhGApJqX2VEWkIxY2VqVDA
and a screenshot where i tried to describe my problem.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
97 | |
84 | |
67 | |
61 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |