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! I created a monthly percent difference chart using Power BI's quick measure, month-over-month change. My problem is the value for the next month (-100%) always appear in the chart. I only want up until the current month (in this case/example, February).
When I change the filter (visual level) of the x-axis such that all months are selected except for March, I get my desired chart.
My question now is, is there a way to dynamically choose the months (in x-axis) here? I'm not talking about filtering the data used under the chart but just the values/ categories in the axis. Note that the axis I'm using is a date hierarchy - with year and level.
If there's no way to dynamically filter the x-axis, can you suggest another way of making this kind of chart to achieve my desired result?
Thanks!
girinpanda
Solved! Go to Solution.
@Anonymous
I Answer in PM. The answer to avoid this is:
Cost MoM% = IF(MAX('Table1'[Date_new])<>BLANK(); IF( ISFILTERED('Table1'[Date_new]); ERROR("Time intelligence quick measures can only be grouped or filtered by the Power BI-provided date hierarchy or primary date column."); VAR __PREV_MONTH = CALCULATE( SUM('Table1'[Cost]); DATEADD('Table1'[Date_new].[Date]; -1; MONTH) ) RETURN DIVIDE(SUM('Table1'[Cost]) - __PREV_MONTH; __PREV_MONTH) ))
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 |
---|---|
109 | |
95 | |
77 | |
65 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |