Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hello DAX team,
Im trying to reuse the below both measures but as calculated columns that I'm trying to create in power query as Custom column
1. # Deals in Rel = count(DealsData[dealsNbr])
2. # Deals-orig and curr are the same = COUNTX(filter(DealsData, DealsData[ProdOfcr – first 2 characters] = DealsData[first 2 characters]), DealsData[dealsNbr]).
Intially, I created the first column to do the same job of measure 1 with the DAX in the below screenshot but it gave me an error then :

the reason for creating these columns instead of measures so that i can use SUM or Count with those columns , because as we know we can't view SUM or COunt with measure but we can do so with Columns as the below screenshots :
To sum up, i need your support to creat columns by wrting suitable DAX that give me the same job of the above 2 measrures (1. , 2.)
thank you,
Solved! Go to Solution.
Hi @RaghdahIsmael ,
Add two custom column as below. Then you can SUM or Count them in report view.
New Table looks like as below.
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @RaghdahIsmael ,
Add two custom column as below. Then you can SUM or Count them in report view.
New Table looks like as below.
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
"Rico Zhou" thank you indeed for your reponse and suggested solution much appreciated and yes it worked 🙂
Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to assist you. Avoid posting screenshots of your source data if possible.
Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |