Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hey Everyone,
I want to create Dax that sums two columns of values with different tables per month.
For example: Table a [Total Hours per Month] + Table B [ Valid Hours] on Jan / Feb / March until December.
Solved! Go to Solution.
you can create a date table and create relationships with both tables.
measure= sum(total hours per month)+sum(valid hours)
Could you pls provide the sample data? Then we can provide proper solution for you
Proud to be a Super User!
Thanks!
but, I'm looking some option without to create date table.
what do you mean by looking for DAX?
What I provided is a DAX solution.
So you don't want to create a date table?
Proud to be a Super User!
Yes 🙂
sry, I have no idea why after I clicked post, the message disappears and I accepted my answer as a solution.
since I only can see one part of your whole data, not sure if the solution works.
It looks like you only have the first date of every month and not sure if you have duplicated date or not.
TableA
TableB
create a relationship between two tables and create a column
Column = SUMX(RELATEDTABLE('Table B'),'Table B'[value])+TableA[value]
Proud to be a Super User!
you can create a date table and create relationships with both tables.
measure= sum(total hours per month)+sum(valid hours)
Could you pls provide the sample data? Then we can provide proper solution for you
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |