Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi good day
Can anyone help me on my calculated column, i have two table that connected. I want to count the number of Job.
DESIRED OUTPUT
Table Connection
Solved! Go to Solution.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
попробуй удалить ALL
L Count =
VAR _KewSearch= SELECTCOLUMNS( {"LS","LP"},"KeyWord",[Value])
VAR _Result = COUNTROWS(FILTER('MAIN_DATA TABLE','MAIN_DATA TABLE'[Code] in _KewSearch))
RETURN
_Result
Hi @Ahmedx thank you for the reply but the new calculated column we required is for the current table.
or creat new columns in Current
Post the file, I don't know what you have there.(current)
Hi @Ahmedx i have this column on my current table plus the new calculated column (L and Q Count)
Thank you
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
pls try
Q Count =
VAR _KewSearch= SELECTCOLUMNS( {"QP","QF","QK","QL"},"KeyWord",[Value])
VAR _Cod = MAX('MAIN_DATA TABLE'[Main No])
VAR _Result = COUNTROWS(FILTER(ALL('MAIN_DATA TABLE'),'MAIN_DATA TABLE'[Code] in _KewSearch&&'MAIN_DATA TABLE'[Main No]=_Cod))
RETURN
_Result
-----------------
L Count =
VAR _KewSearch= SELECTCOLUMNS( {"LS","LP"},"KeyWord",[Value])
VAR _Cod = MAX('MAIN_DATA TABLE'[Main No])
VAR _Result = COUNTROWS(FILTER(ALL('MAIN_DATA TABLE'),'MAIN_DATA TABLE'[Code] in _KewSearch&&'MAIN_DATA TABLE'[Main No]=_Cod))
RETURN
_Result
Hi @Ahmedx thank you for the reply but it count the overall instead of per Main No. Please note my MAIN DATA TABLE, Main No column has many different no.
DESIRED OUTPUT
Thank you
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 21 | |
| 20 | |
| 18 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 50 | |
| 38 | |
| 31 | |
| 27 |