Join 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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hello community:)
How to use a measure in creating another measure? I have gone through some of the documentation and tutorials but when implemented I am facing issues? Can anyone help me out with this?
The issue is that the cost that I am calculating is not taking into consideration the distinct emp measure instead it is taking the count that was previously present i.e. the values before the distinctEmp measure.
Main measure:
Thanks in advance:))
Solved! Go to Solution.
@ssai Relationships and context is very important. How is table1 related to table 2?
You may need to use a RELATEDTABLE function, change/fix relationships, and maybe adjust your measure.
I'm thinking something like:
Cost = FORMAT(SUMX('table1', 'table1'[Unitary Cost (cost per unit yearly)] * [distinctEmp]), "Standard")
but depends what you're trying to calculate.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
@ssai Relationships and context is very important. How is table1 related to table 2?
You may need to use a RELATEDTABLE function, change/fix relationships, and maybe adjust your measure.
I'm thinking something like:
Cost = FORMAT(SUMX('table1', 'table1'[Unitary Cost (cost per unit yearly)] * [distinctEmp]), "Standard")
but depends what you're trying to calculate.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 53 | |
| 42 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 112 | |
| 106 | |
| 39 | |
| 36 | |
| 27 |