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.
I have two tables, one for project costs for numerous projects and the other with cost plans for the projects. All the projects have real cost but not all projects have a cost plan. I want to either make a calculated table with all projects real costs for projects that also have a cost plan or some filter that does this in a measurement. Is this possible?
Thanks.
Solved! Go to Solution.
@314mp_M0th4 , You can have measure like
calculate(sum(Table1[Values]), filter(Table1, Table1[Project] in values(Table2[Values]) ))
or use Treatas
https://docs.microsoft.com/en-us/dax/treatas-function
or Create common dimensions
Power BI- DAX: When I asked you to create common tables: https://youtu.be/a2CrqCA9geM
https://medium.com/@amitchandak/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-soluti...
Hi @314mp_M0th4 ,
I created some data:
TableA:
TableB:
Calculated table:
Table =
var _table1=
SUMMARIZE(
'TableB',
'TableB'[Projects],'TableB'[cost plan],"real projects",
MINX(
FILTER(ALL(TableA),
'TableA'[Projects]=EARLIER('TableB'[Projects])),'TableA'[real cost]))
return
FILTER(
_table1,[real projects]<>BLANK())
Measure.
Measure =
MINX(
FILTER(ALL(TableA),
'TableA'[Projects]=MAX('TableB'[Projects])),[real cost])
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
@314mp_M0th4 , You can have measure like
calculate(sum(Table1[Values]), filter(Table1, Table1[Project] in values(Table2[Values]) ))
or use Treatas
https://docs.microsoft.com/en-us/dax/treatas-function
or Create common dimensions
Power BI- DAX: When I asked you to create common tables: https://youtu.be/a2CrqCA9geM
https://medium.com/@amitchandak/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-soluti...
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 |
---|---|
77 | |
74 | |
57 | |
38 | |
33 |
User | Count |
---|---|
70 | |
63 | |
55 | |
48 | |
46 |