Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
In SQL, I write the below query to get my desired Result.
SELECT
STIM.TeamName AS SalesTeamName
,COALESCE ( ATA.SalesTeamName
, STIM.SalesTeamName
, STBR.description
,STT.SalesTeamName
,'Other'
) AS ActiveSalesTeam
FROM RevenueDetails RD
LEFT JOIN SalesTeamToday STT on STT.SalesPersonID = RD.SalesPersonID
LEFT JOIN SalesTeamByReseller STBR on STBR.name = RD.name
LEFT JOIN SalesTeamInMonth STIM on STIM.SalesPersonMonthKey = RD.SalesPersonMonthKey
LEFT JOIN ActiveTeamByAccount ATA on ATA.AccountKey = RD.AccountKey
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 11 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 19 | |
| 12 | |
| 11 |