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.
Hello.
I have two slicers, one with year and other with month (both required).
The idea is: When I select year and month, one colunm return the period selected and other colunm return the values from last december before selected period.
Example:
IF I selected May 2018, columns return May 2018 and December 2017;
If I select April 2016, return April 2016 and December 2015.
The actual values it´s ok.
But, when I select the period, the column Exposition Last December doesn´t work.
Can someone help me?
Solved! Go to Solution.
Hi @Meirieli,
I'm assuming you want MTD values:
Use something like this:
Exposition Last December = CALCULATE ( SUM ( Table[Value] ); FILTER ( ALL ( Table[Date] ); MONTH ( Table[Date] ) = 12 && YEAR ( Table[Date] ) = ( YEAR ( MAX ( Table[Date] ) ) -1) ) )
Any questions please tell me
Regards
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Meirieli,
I'm assuming you want MTD values:
Use something like this:
Exposition Last December = CALCULATE ( SUM ( Table[Value] ); FILTER ( ALL ( Table[Date] ); MONTH ( Table[Date] ) = 12 && YEAR ( Table[Date] ) = ( YEAR ( MAX ( Table[Date] ) ) -1) ) )
Any questions please tell me
Regards
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsCovering 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 |
---|---|
110 | |
94 | |
80 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |