Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have these two tables (both loaded in Power Query) and displayed in Power BI as two Table visualizations:
Table name: Submissions
Name | Week Number |
Trenton Espinoza | 42 |
Anahi Johns | 43 |
Max Gilbert | 43 |
Jadyn Levine | 44 |
Table name: Exceptions
Name | Week Number |
Jadyn Levine | 45 |
Trenton Espinoza | 41 |
Anahi Johns | 43 |
Katherine Waters | 45 |
Jazlynn Mcclure | 46 |
In Power BI, i want the result to be shown in the table, Submissions, by highlighting the names based on certain conditions.
Result shown in Power BI in the table, Submissions:
Name | Week Number |
Trenton Espinoza | 42 |
Anahi Johns | 43 |
Max Gilbert | 43 |
Jadyn Levine | 44 |
The conditions for highlighting the names in the table Submissions:
1. The names in the Submissions table not in common with the names in the Exceptions table.
2. If the names in the Submissions table is common with the names in the Exceptions table, then check if the Week Number in the Submissions table is greater than the Week Number in the Exceptions table.
But i would like the font colour change in the same table, Submissions, visualization in the Power BI report.
Solved! Go to Solution.
Hi, @Anonymous
Try to create a measure like this:
Measure =
var _t1=ADDCOLUMNS('Submissions',"E-WN",CALCULATE(MAX('Exceptions'[Week Number]),FILTER(ALL(Exceptions),'Exceptions'[Name]='Submissions'[Name])))
var _t2=SUMMARIZE(FILTER(_t1,[E-WN]=BLANK()||[Week Number]>[E-WN]),[Name])
var _if=IF(SELECTEDVALUE('Submissions'[Name]) in _t2, "red")
return _if
Then apply conditional formatting to the name field.
Result:
Please refer to the attachment below for details.
Hope this helps.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
Try to create a measure like this:
Measure =
var _t1=ADDCOLUMNS('Submissions',"E-WN",CALCULATE(MAX('Exceptions'[Week Number]),FILTER(ALL(Exceptions),'Exceptions'[Name]='Submissions'[Name])))
var _t2=SUMMARIZE(FILTER(_t1,[E-WN]=BLANK()||[Week Number]>[E-WN]),[Name])
var _if=IF(SELECTEDVALUE('Submissions'[Name]) in _t2, "red")
return _if
Then apply conditional formatting to the name field.
Result:
Please refer to the attachment below for details.
Hope this helps.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.