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

Conditional formatting

I have calculated table that allows me to produce a summary matrix, but I need to conditionally format specific rows but I'm not sure that i can do it. 

 

 

DataTable.PNG

 

This is the  data table that I am using. It ihas been created using DAX 

Current Summary Data = UNION(
    --BOPD    
    SUMMARIZECOLUMNS(DimFieldGroup[Group Name], 
            "Time", "Today",
            "Type" , "Actual",
            "Value (T)", calculate(SUM('pds V_FIELD_BOPD_TARGET_FORECAST'[bopd]), filter('pds V_FIELD_BOPD_TARGET_FORECAST', 'pds V_FIELD_BOPD_TARGET_FORECAST'[full_date]= max('pds V_FIELD_BOPD_TARGET_FORECAST'[full_date])))
            ) -- end of BOPD
,     --Forecast    
    SUMMARIZECOLUMNS(DimFieldGroup[Group Name], 
            "Time", "Today",
            "Type" , "Forecast",
            "Value (T)", calculate(SUM('pds V_FIELD_BOPD_TARGET_FORECAST'[forecast]), filter('pds V_FIELD_BOPD_TARGET_FORECAST', 'pds V_FIELD_BOPD_TARGET_FORECAST'[full_date]= max('pds V_FIELD_BOPD_TARGET_FORECAST'[full_date])))
)  --end of Forecast
,  
    --budget    
    SUMMARIZECOLUMNS(DimFieldGroup[Group Name], 
            "Time", "Today",
            "Type" , "Budget",
            "Value (T)", calculate(SUM('pds V_FIELD_BOPD_TARGET_FORECAST'[target]), filter('pds V_FIELD_BOPD_TARGET_FORECAST', 'pds V_FIELD_BOPD_TARGET_FORECAST'[full_date]= max('pds V_FIELD_BOPD_TARGET_FORECAST'[full_date])))
) -- end of budget
,
    --BOPD   YTD 
    SUMMARIZECOLUMNS(DimFieldGroup[Group Name], 
            "Time", "YTD",
            "Type" , "Actual",
            "Value (T)", calculate(AVERAGE('pds V_FIELD_BOPD_TARGET_FORECAST'[bopd]), filter('pds V_FIELD_BOPD_TARGET_FORECAST', YEAR('pds V_FIELD_BOPD_TARGET_FORECAST'[full_date])= YEAR(TODAY())))
            ) -- end of BOPD
,     --Forecast    
    SUMMARIZECOLUMNS(DimFieldGroup[Group Name], 
            "Time", "YTD",
            "Type" , "Forecast",
            "Value (T)", calculate(AVERAGE('pds V_FIELD_BOPD_TARGET_FORECAST'[forecast]), filter('pds V_FIELD_BOPD_TARGET_FORECAST', YEAR('pds V_FIELD_BOPD_TARGET_FORECAST'[full_date])= YEAR(TODAY())))
)  --end of Forecast
,  
    --budget    
    SUMMARIZECOLUMNS(DimFieldGroup[Group Name], 
            "Time", "YTD",
            "Type" , "Budget",
            "Value (T)", calculate(AVERAGE('pds V_FIELD_BOPD_TARGET_FORECAST'[target]), filter('pds V_FIELD_BOPD_TARGET_FORECAST', YEAR('pds V_FIELD_BOPD_TARGET_FORECAST'[full_date])= YEAR(TODAY())))
) -- end of budget
,  
    --Delta Budget Actual    
    SUMMARIZECOLUMNS(DimFieldGroup[Group Name], 
            "Time", "Today",
            "Type" , "Delta Budget",
            "Value (T)", calculate(SUM('pds V_FIELD_BOPD_TARGET_FORECAST'[bopd])-sum('pds V_FIELD_BOPD_TARGET_FORECAST'[target]), 
                        filter('pds V_FIELD_BOPD_TARGET_FORECAST', 'pds V_FIELD_BOPD_TARGET_FORECAST'[full_date]= max('pds V_FIELD_BOPD_TARGET_FORECAST'[full_date])))
) -- end of budget
,    --Delta Budget Actual
    SUMMARIZECOLUMNS(DimFieldGroup[Group Name], 
            "Time", "YTD",
            "Type" , "Delta Budget",
            "Value (T)", calculate(AVERAGE('pds V_FIELD_BOPD_TARGET_FORECAST'[bopd])-AVERAGE('pds V_FIELD_BOPD_TARGET_FORECAST'[target]), 
                        filter('pds V_FIELD_BOPD_TARGET_FORECAST', YEAR('pds V_FIELD_BOPD_TARGET_FORECAST'[full_date])= YEAR(TODAY())))
) -- end of budget
,  
    --Delta Budget Percent    
    SUMMARIZECOLUMNS(DimFieldGroup[Group Name], 
            "Time", "Today",
            "Type" , "Delta Budget %",
            "Value (T)", calculate(  ( (SUM('pds V_FIELD_BOPD_TARGET_FORECAST'[bopd])-sum('pds V_FIELD_BOPD_TARGET_FORECAST'[target])) / sum('pds V_FIELD_BOPD_TARGET_FORECAST'[target]) *100)  ,
                        filter('pds V_FIELD_BOPD_TARGET_FORECAST', 'pds V_FIELD_BOPD_TARGET_FORECAST'[full_date]= max('pds V_FIELD_BOPD_TARGET_FORECAST'[full_date])))
) -- end of budget
,    --Delta Budget Percent
    SUMMARIZECOLUMNS(DimFieldGroup[Group Name], 
            "Time", "YTD",
            "Type" , "Delta Budget %",
            "Value (T)", calculate(   (  (AVERAGE('pds V_FIELD_BOPD_TARGET_FORECAST'[bopd])-AVERAGE('pds V_FIELD_BOPD_TARGET_FORECAST'[target]) ) / AVERAGE('pds V_FIELD_BOPD_TARGET_FORECAST'[target]) * 100) , 
                        filter('pds V_FIELD_BOPD_TARGET_FORECAST', YEAR('pds V_FIELD_BOPD_TARGET_FORECAST'[full_date])= YEAR(TODAY())))
) -- end of budget

,  
    --Delta Forecast Actual    
    SUMMARIZECOLUMNS(DimFieldGroup[Group Name], 
            "Time", "Today",
            "Type" , "Delta Forecast",
            "Value (T)", calculate(SUM('pds V_FIELD_BOPD_TARGET_FORECAST'[bopd])-sum('pds V_FIELD_BOPD_TARGET_FORECAST'[forecast]), 
                        filter('pds V_FIELD_BOPD_TARGET_FORECAST', 'pds V_FIELD_BOPD_TARGET_FORECAST'[full_date]= max('pds V_FIELD_BOPD_TARGET_FORECAST'[full_date])))
) -- end of forecast
,    --Delta Forecast Actual
    SUMMARIZECOLUMNS(DimFieldGroup[Group Name], 
            "Time", "YTD",
            "Type" , "Delta Forecast",
            "Value (T)", calculate(AVERAGE('pds V_FIELD_BOPD_TARGET_FORECAST'[bopd])-AVERAGE('pds V_FIELD_BOPD_TARGET_FORECAST'[forecast]), 
                        filter('pds V_FIELD_BOPD_TARGET_FORECAST', YEAR('pds V_FIELD_BOPD_TARGET_FORECAST'[full_date])= YEAR(TODAY())))
) -- end of budget
,  
    --Delta Forecast Percent    
    SUMMARIZECOLUMNS(DimFieldGroup[Group Name], 
            "Time", "Today",
            "Type" , "Delta Forecast %",
            "Value (T)", calculate(  ( (SUM('pds V_FIELD_BOPD_TARGET_FORECAST'[bopd])-sum('pds V_FIELD_BOPD_TARGET_FORECAST'[forecast])) / sum('pds V_FIELD_BOPD_TARGET_FORECAST'[forecast]) *100)  ,
                        filter('pds V_FIELD_BOPD_TARGET_FORECAST', 'pds V_FIELD_BOPD_TARGET_FORECAST'[full_date]= max('pds V_FIELD_BOPD_TARGET_FORECAST'[full_date])))
) -- end of budget
,    --Delta forecast Percent
    SUMMARIZECOLUMNS(DimFieldGroup[Group Name], 
            "Time", "YTD",
            "Type" , "Delta Forecast %",
            "Value (T)", calculate(   (  (AVERAGE('pds V_FIELD_BOPD_TARGET_FORECAST'[bopd])-AVERAGE('pds V_FIELD_BOPD_TARGET_FORECAST'[forecast]) ) / AVERAGE('pds V_FIELD_BOPD_TARGET_FORECAST'[forecast]) * 100) , 
                        filter('pds V_FIELD_BOPD_TARGET_FORECAST', YEAR('pds V_FIELD_BOPD_TARGET_FORECAST'[full_date])= YEAR(TODAY())))
) -- end of Delta Forecast percent
)  -- end of union

and below is the matrix visualisation with the rows that I need to format circled. 

 

Visual.PNG

Is this even possible?

Can I choose font colours in DAX? 

 

Susan

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Conditional formatting

@suzsword ,

 

You may take a look at Color formatting by field value.

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
Community Support Team
Community Support Team

Re: Conditional formatting

@suzsword ,

 

You may take a look at Color formatting by field value.

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
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 370 members 3,583 guests
Please welcome our newest community members: