cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vmkumar1
Frequent Visitor

Conditional Formatting on QTR'y results

Hello All,

 

I am working on a yearly sales analysis report and I am reporting my results Quaterly.

I displayed my results in Matrix visual (Years on Y axis and Qtr's on X axis) as per the image.  I would like to display the numbers in Red format if the Qtr results are less than previous Qtr.

 

EX - 2014 Q2 is 23k but Q3 is 20k- In this scenario i would like to disply it as Red as the sales were less than previous QTR.

I tried to use conditional formating but it needs a default/ base value to compare and my Qtr'y results wont be static.Could you please let me know if there a way?

 

 

QTR Sales.JPGThanks In advance.

 

 

 

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@vmkumar1 ,

 

You may use a measure.

Measure =
SIGN (
    CALCULATE ( SUM ( 'Table'[sales] ), PREVIOUSQUARTER ( 'Table'[Date].[Date] ) )
        - SUM ( 'Table'[sales] )
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@vmkumar1 ,

 

You may use a measure.

Measure =
SIGN (
    CALCULATE ( SUM ( 'Table'[sales] ), PREVIOUSQUARTER ( 'Table'[Date].[Date] ) )
        - SUM ( 'Table'[sales] )
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!