March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I searched every topic from the community and not found how to do this.
Sorry if anyone already solve it.
The thing is that I have a source table (table 1) with multiple key like this example
And I have another one like this example (table 2):
I'd like to do a CALCULATE formula that SUM the values from the column 'table 2'[3M] , with the keys 'table 1'[Key1] and 'table 2'[Key1] and returns the SUM of the 'table 2'[3M] only for the first row of the table 1. I need this to not duplicate the Forecast Value of the Table 2 in my Table 1.
Hope someone helps me. 😃
Thanks!
Solved! Go to Solution.
Hi,
You may download my PBI file from here.
Hope this helps.
Hi,
Your question is not clear and the images there are very small. Show a smaller dataset, explain the business context and show the expected result.
Ok, I made the example in excel bellow:
My goal is to do a CALCULATE in table 1 as a sumif, with the Key1 of both tables, that SUM the values from the column Forecast from Table 2, but populate only the first row in Table 1.
*I can't do a CALCULATE as a sumif simple and populate the other rows of Table 1 because it will duplicate or triplicate the Forecast value from Table 2 in Table 1.
Thank you for your time. 😃
Hope you could help me.
Hi,
You may download my PBI file from here.
Hope this helps.
Hi,
I can do this with a combination of the Query Editor and a calculated column formula. Would you be OK with that solution?
Sure.
I am trying to do it in DAX, but if the only solution is with the Query Editor, I can change it, no problem.
Thanks.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
87 | |
70 | |
51 |
User | Count |
---|---|
206 | |
150 | |
97 | |
78 | |
69 |