Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
All 4 tables are connected through index column
Table1 is VM having Col: Server_name
Table2 is Tool having Col: Server_name
Table3 is Excluded having Col: Server_name,Tool_Name
Table4 is Active having Col: Server_name,Tool_Name
I want count of server names of VM table which are not present in any three tables which are Tool, Excluded, Activeusing DAX formula and from Excluded and Active table I only want values to be searched which have "D" as value in Tool_Name column.
Tried dax formulas from Chat gpt and all but showing parameter unexpected and Cant find values errors
Solved! Go to Solution.
Hi @GC0001 ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a table.
Table =
var _t2=VALUES('Tool'[Col: Server_name])
var _t3=CALCULATETABLE(VALUES('Excluded'[Col: Server_name]),'Excluded'[Tool_Name]="D")
var _t4=CALCULATETABLE(VALUES('Active'[Col: Server_name]),'Active'[Tool_Name]="D")
var _t=UNION(_t2,_t3,_t4)
RETURN EXCEPT(VALUES('VM'[Col: Server_name]),_t)
(3) We can create a measure.
Count = COUNTROWS(ALL('Table'))
(4) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @GC0001 ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a table.
Table =
var _t2=VALUES('Tool'[Col: Server_name])
var _t3=CALCULATETABLE(VALUES('Excluded'[Col: Server_name]),'Excluded'[Tool_Name]="D")
var _t4=CALCULATETABLE(VALUES('Active'[Col: Server_name]),'Active'[Tool_Name]="D")
var _t=UNION(_t2,_t3,_t4)
RETURN EXCEPT(VALUES('VM'[Col: Server_name]),_t)
(3) We can create a measure.
Count = COUNTROWS(ALL('Table'))
(4) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
8 |
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
8 |