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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
AndrewPF
Helper V
Helper V

missing data but with additional information from both tables

If I have a list of standard controls as follows: 

 

Control Set

HR Security

Compliance

Web Security 

Incident Response 

 

and a separate list of businesses, along with their own controls:  

 

Company           Control Set

Fever Tree          HR Security 

Fever Tree          Compliance 

Fever Tree          Incident Response

Britvic                 HR Security

Britvic                 Compliance

Britvic                 Web Security

Thwaites             HR Security

Thwaites             Compliance 

Thwaites             Web Security

Thwaites             Incident Response 

PepsiCo              HR Security 

PepsiCo              Web Security 

PepsiCo              Incident Response 

 

then I need a way of identifiying which business have missing controls, and which controls are missing from each business, i.e.: 

 

Company       Control Set 

Fever Tree       Web Security 

Britvic              Incident Response 

PepsiCo           Compliance

 

Any ideas please? 

8 REPLIES 8
AndrewPF
Helper V
Helper V

Unfortunately, I have 33 control sets and 200 business units, so a matrix or table just won't work graphically. 

The requirements from my customer are very specific i.e. a list of all missing control sets from each business unit which is missing at least one control set. 

 

Missing = CONCATENATEX(EXCEPT(SELECTCOLUMNS('Control Set Reference',"Name",[Control Set Name]),VALUES('Control Sets'[Name])),[Name],",")

 

lbendlin_0-1694707868953.png

see attached

AndrewPF
Helper V
Helper V

First table name: "Control Sets": 

 

Business UnitName
Fever TreeHR Security 
Fever TreeCompliance 
Fever TreeIncident Response
BritvicHR Security
BritvicCompliance
BritvicWeb Security
ThwaitesHR Security
ThwaitesCompliance 
ThwaitesWeb Security
ThwaitesIncident Response 
PepsiCoHR Security 
PepsiCoWeb Security 
PepsiCoIncident Response 

 

Second table name: "Control Set Fact Table": 

 

Control Set IndexControl Set Name
1HR Security
2Compliance 
3Web Security
4

Incident Response 

 

Desired outcome - missing data: 

 

Business UnitControl Set 
Fever TreeWeb Security 
BritvicIncident Response 
PepsiCoCompliance

 

Your "control set fact table"  likely isn't a fact table, it seems to be a reference/dimension table.

 

Consider using a data model

 

lbendlin_1-1694706417163.png

 

and a graphical solution to the question.

 

lbendlin_0-1694706401693.png

What should happen if a business unit misses more than one control set?

AndrewPF
Helper V
Helper V

I tried using the "Controls present" formula but I get the error message "A single value for column [column name] in table [table name] cannot be determined.  This can happen when a measure formula refers to a column that contains many values...". 

I probably should have specified that there are other columns in both tables.  Does that matter? 

Please provide sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.

Ashish_Mathur
Super User
Super User

Hi,

These measures work

Controls present = CONCATENATEX(VALUES(Company[Control Set]),Company[Control Set],",")
Controls absent = CONCATENATEX(EXCEPT(Control,VALUES(Company[Control Set])),Control[Control Set],",")

Ashish_Mathur_0-1694312589873.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

Read about the EXCEPT() function in DAX

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors