Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I have a table Visualization with percentages in power Bi. I want to format it in such a way that I can see an increase or decrease from the previous month. I am not sure how to go about it to be honest. But when I tried, I could see anything that could help me.Please
Solved! Go to Solution.
Please refer to the linked discussion.
And the linked tutorial
https://radacad.com/month-over-month-calculation-in-power-bi-using-dax
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
You can refer to the following solution.
Sample data
Create three measure
Format_fc =
VAR _preffc =
CALCULATE (
SUM ( 'Table'[%Stock to FC] ),
'Table'[Monthnumber]
= MAX ( 'Table'[Monthnumber] ) - 1,
ALLSELECTED ( 'Table' )
)
RETURN
IF (
NOT ( ISBLANK ( _preffc ) ),
IF ( SUM ( 'Table'[%Stock to FC] ) - _preffc > 0, 1, 0 )
)
Format_fcr =
VAR _preffcr =
CALCULATE (
SUM ( 'Table'[%Stock to FCR] ),
'Table'[Monthnumber]
= MAX ( 'Table'[Monthnumber] ) - 1,
ALLSELECTED ( 'Table' )
)
RETURN
IF (
NOT ( ISBLANK ( _preffcr ) ),
IF ( SUM ( 'Table'[%Stock to FCR] ) - _preffcr > 0, 1, 0 )
)
Format_rica =
VAR _prerica =
CALCULATE (
SUM ( 'Table'[%Stock to RICA] ),
'Table'[Monthnumber]
= MAX ( 'Table'[Monthnumber] ) - 1,
ALLSELECTED ( 'Table' )
)
RETURN
IF (
NOT ( ISBLANK ( _prerica ) ),
IF ( SUM ( 'Table'[%Stock to RICA] ) - _prerica > 0, 1, 0 )
)
Then put them to the conditional formatting of the [%Stock to RICA],[%Stock to FC],[%Stock to FCR], select icons
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.
You can refer to the following solution.
Sample data
Create three measure
Format_fc =
VAR _preffc =
CALCULATE (
SUM ( 'Table'[%Stock to FC] ),
'Table'[Monthnumber]
= MAX ( 'Table'[Monthnumber] ) - 1,
ALLSELECTED ( 'Table' )
)
RETURN
IF (
NOT ( ISBLANK ( _preffc ) ),
IF ( SUM ( 'Table'[%Stock to FC] ) - _preffc > 0, 1, 0 )
)
Format_fcr =
VAR _preffcr =
CALCULATE (
SUM ( 'Table'[%Stock to FCR] ),
'Table'[Monthnumber]
= MAX ( 'Table'[Monthnumber] ) - 1,
ALLSELECTED ( 'Table' )
)
RETURN
IF (
NOT ( ISBLANK ( _preffcr ) ),
IF ( SUM ( 'Table'[%Stock to FCR] ) - _preffcr > 0, 1, 0 )
)
Format_rica =
VAR _prerica =
CALCULATE (
SUM ( 'Table'[%Stock to RICA] ),
'Table'[Monthnumber]
= MAX ( 'Table'[Monthnumber] ) - 1,
ALLSELECTED ( 'Table' )
)
RETURN
IF (
NOT ( ISBLANK ( _prerica ) ),
IF ( SUM ( 'Table'[%Stock to RICA] ) - _prerica > 0, 1, 0 )
)
Then put them to the conditional formatting of the [%Stock to RICA],[%Stock to FC],[%Stock to FCR], select icons
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.
Please refer to the linked discussion.
And the linked tutorial
https://radacad.com/month-over-month-calculation-in-power-bi-using-dax
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 33 | |
| 33 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 45 | |
| 30 | |
| 28 |