Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have three months value in the table Feb,March,April based on the Attribute Wise .
please find the screen shot below. i am trying to use conditional formatting for the below table.
Can anyone please advise me on this? I am looking for support .
Solved! Go to Solution.
Hi @THENNA_41 ,
Here are the steps you can follow:
1. Use Enter data to create a table Month.
2. In Power query. Add Column – Index Column – From 1.
3. Create calculated column.
Month =
FORMAT('Table'[Date],"mmm")
Month_number =
MONTH('Table'[Date])
4. Join the two tables.
5. Create measure.
Measure_true =
var _current1=
CALCULATE(SUM('Table'[Amount]),FILTER(ALL('Table'),'Table'[Month_number]=MAX('Table'[Month_number])-1&&'Table'[Group]=MAX('Table'[Group])))
var _current2=
CALCULATE(SUM('Table'[Amount]),FILTER(ALL('Table'),'Table'[Month_number]=MAX('Table'[Month_number])&&'Table'[Group]=MAX('Table'[Group])))
return
SWITCH(
TRUE(),
_current2>_current1,UNICHAR ( 9650 ),
_current2<_current1,UNICHAR ( 128315 ),
_current2=_current1,"=")
6. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @THENNA_41 ,
Here are the steps you can follow:
1. Use Enter data to create a table Month.
2. In Power query. Add Column – Index Column – From 1.
3. Create calculated column.
Month =
FORMAT('Table'[Date],"mmm")
Month_number =
MONTH('Table'[Date])
4. Join the two tables.
5. Create measure.
Measure_true =
var _current1=
CALCULATE(SUM('Table'[Amount]),FILTER(ALL('Table'),'Table'[Month_number]=MAX('Table'[Month_number])-1&&'Table'[Group]=MAX('Table'[Group])))
var _current2=
CALCULATE(SUM('Table'[Amount]),FILTER(ALL('Table'),'Table'[Month_number]=MAX('Table'[Month_number])&&'Table'[Group]=MAX('Table'[Group])))
return
SWITCH(
TRUE(),
_current2>_current1,UNICHAR ( 9650 ),
_current2<_current1,UNICHAR ( 128315 ),
_current2=_current1,"=")
6. Result:
Best Regards,
Liu Yang
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!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
13 | |
12 | |
12 | |
7 | |
7 |
User | Count |
---|---|
19 | |
14 | |
11 | |
10 | |
10 |