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 nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 28 | |
| 26 | |
| 25 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 52 | |
| 47 | |
| 43 | |
| 36 | |
| 33 |