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.
Hi Community,
I need one small help. In my grid there is month slicer. If in the month slicer march month is selected then the grid must display values from jan to march. as of now it displays only the march value. I must get the values in the higlighted part. Your help would
be highly appreciated.
DAX:
Solved! Go to Solution.
Hi @Anonymous ,
We can use the following steps to meet your requirement.
3a CWC - CWC as % of R12M Revenue =
GROUPBY (
ADDCOLUMNS (
CALENDARAUTO (),
"Month", FORMAT ( [Date], "MMM" ),
"MonthNumber", MONTH ( [Date] )
),
[Month],
[MonthNumber]
)
Measure =
VAR date_ =
MIN ( '3a CWC - CWC as % of R12M Revenue'[Month number] )
RETURN
CALCULATE ( SUM ( 'LE'[AC] ), FILTER ( 'LE', 'LE'[Month number] <= date_ ) )
And we can get the result like this,
BTW, pbix as attached.
Best regards,
Hi @Anonymous ,
Glad to help you~
Could you please accept my answer or @v-lid-msft 's answer as a solution?
So other people will know that the problem is solved.
Thanks.
Aiolos Zhao
Proud to be a Super User!
Hi @Anonymous ,
I have a workaround hope you can like it,
1. Create an index for your month column from 1.
2. Then you will get 1-12 for your month column, and put the index as the filter.
3. Then choose the Less than or equal to in the filter type like the below image
Aiolos Zhao
Proud to be a Super User!
Yes it is working but it is affecting all the rows. Still i will give it try with my team members. If they accept ill accept this as solution. Thanks mate
Hi @Anonymous ,
Glad to help you~
Could you please accept my answer or @v-lid-msft 's answer as a solution?
So other people will know that the problem is solved.
Thanks.
Aiolos Zhao
Proud to be a Super User!
Hi @Anonymous ,
We can use the following steps to meet your requirement.
3a CWC - CWC as % of R12M Revenue =
GROUPBY (
ADDCOLUMNS (
CALENDARAUTO (),
"Month", FORMAT ( [Date], "MMM" ),
"MonthNumber", MONTH ( [Date] )
),
[Month],
[MonthNumber]
)
Measure =
VAR date_ =
MIN ( '3a CWC - CWC as % of R12M Revenue'[Month number] )
RETURN
CALCULATE ( SUM ( 'LE'[AC] ), FILTER ( 'LE', 'LE'[Month number] <= date_ ) )
And we can get the result like this,
BTW, pbix as attached.
Best regards,
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 |
---|---|
108 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |