March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi @BeginnerBI
You can refer to the following example
The data table
The measure to be put to the value in matrix visual
Total = SUM('Table'[Value])
Then create measure to set the icon rules
Rules = var _previousdate=MAXX(FILTER(ALLSELECTED('Table'),[Date]<MAX([Date])),[Date])
var _previousvalues=CALCULATE([Total],'Table'[Date]=_previousdate)
return SWITCH(TRUE(),OR([Total]=_previousvalues,_previousvalues=0),1,[Total]>_previousvalues&&_previousvalues<>0,2,[Total]<_previousvalues&&_previousvalues<>0,3)
Then put the measure to the conditional formatting
Then choose the measure in the field and set the rules below
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @BeginnerBI
You can refer to the following example
The data table
The measure to be put to the value in matrix visual
Total = SUM('Table'[Value])
Then create measure to set the icon rules
Rules = var _previousdate=MAXX(FILTER(ALLSELECTED('Table'),[Date]<MAX([Date])),[Date])
var _previousvalues=CALCULATE([Total],'Table'[Date]=_previousdate)
return SWITCH(TRUE(),OR([Total]=_previousvalues,_previousvalues=0),1,[Total]>_previousvalues&&_previousvalues<>0,2,[Total]<_previousvalues&&_previousvalues<>0,3)
Then put the measure to the conditional formatting
Then choose the measure in the field and set the rules below
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
105 | |
98 | |
65 | |
54 |