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
Here's a snapshot of my data: 
I need a way to say whether or not an OrganizationName is considered CSP (IsCSP= CSP). However, each JobNum has multiple RateDesc, some rates are CSP and some aren't. I want to write a column or measure or something that say "If at least one RateDesc= "CSP", then this OrganizationName is CSP. I need the OrganizationName as a whole to be considered CSP or NotCSP
Solved! Go to Solution.
Hi @bhmiller89,
From your description, I create some sample data, you can create calculated columns like below:
IsCSPNew = IF('Table3'[IsCSP]="CSP",1,0)
OrgName = IF(CALCULATE(SUM(Table3[IsCSPNew]),ALLEXCEPT(Table3,'Table3'[TSMDepartment],'Table3'[OrganizationName],'Table3'[Domain Name],'Table3'[JobNum])),
"CSP",
"NotCSP"
)
Best Regards,
Qiuyun Yu
Hi @bhmiller89,
From your description, I create some sample data, you can create calculated columns like below:
IsCSPNew = IF('Table3'[IsCSP]="CSP",1,0)
OrgName = IF(CALCULATE(SUM(Table3[IsCSPNew]),ALLEXCEPT(Table3,'Table3'[TSMDepartment],'Table3'[OrganizationName],'Table3'[Domain Name],'Table3'[JobNum])),
"CSP",
"NotCSP"
)
Best Regards,
Qiuyun Yu
Hi @bhmiller89,
You can try the CONTAIN formula to have a measure that does that classification:
Measure = IF(
CONTAINS(
Table,
Table[IsCSP];
"CSP");
"CSP";
"NotCSP"
)Regards,
MFElix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThe Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |