Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
anonymus
Frequent Visitor

Conditional formatting

Hello ,
I am new to power bi and i am trying to get the average of the trainings based on the countries with the condition given to respective status of each quater. For example in the below screenshot has the example of two contries. suppose if we are taking 10 contries and want to have the average of all the trainings based on the training status values (On track, In progress,NA,Not started  )and build it in a dashboard, how we can achieve that.Please need some suggestions.
thank you

anonymus_0-1682433270062.png

anonymus_1-1682433302535.png

anonymus_0-1682433920470.png

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @anonymus 

 

To achieve what you want, you need to separate the process into two steps. First, combine data of all countries into a single table with Power Query. Second, add data into a table or matrix visual and set up conditional formatting for the visual.

 

In the first step, if every country data is in a single table, so you have 10 tables in total. You need to import all of them into Power BI, then use Append Queries feature to combine all of them into one big table. You need to add a Country column to every table before appending, which can tell you each row represents data from which country table. Append queries - Power Query | Microsoft Learn If your data is from multiple files, you can use the Folder connector to connect to the folder where files are and combine all files easily. Combine files overview - Power Query | Microsoft Learn

 

After appending, you will have a big table similar to below. Apply the data to Power BI Desktop. 

vjingzhang_0-1682562797432.png

 

Then add a matrix visual to the report. Add columns to the visual and set the conditional formatting rule similar to below. 

vjingzhang_2-1682564175353.png

You will have the result you want. I have attached a sample file at bottom for your reference. 

vjingzhang_1-1682564119727.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

2 REPLIES 2
anonymus
Frequent Visitor

Thank you

v-jingzhang
Community Support
Community Support

Hi @anonymus 

 

To achieve what you want, you need to separate the process into two steps. First, combine data of all countries into a single table with Power Query. Second, add data into a table or matrix visual and set up conditional formatting for the visual.

 

In the first step, if every country data is in a single table, so you have 10 tables in total. You need to import all of them into Power BI, then use Append Queries feature to combine all of them into one big table. You need to add a Country column to every table before appending, which can tell you each row represents data from which country table. Append queries - Power Query | Microsoft Learn If your data is from multiple files, you can use the Folder connector to connect to the folder where files are and combine all files easily. Combine files overview - Power Query | Microsoft Learn

 

After appending, you will have a big table similar to below. Apply the data to Power BI Desktop. 

vjingzhang_0-1682562797432.png

 

Then add a matrix visual to the report. Add columns to the visual and set the conditional formatting rule similar to below. 

vjingzhang_2-1682564175353.png

You will have the result you want. I have attached a sample file at bottom for your reference. 

vjingzhang_1-1682564119727.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.