Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
I have a table in which I have the value of a product per day, store.
| Store | Product | Day | Value |
| 1 | A | 1 | 1000 |
| 1 | B | 2 | 500 |
| ... | ... | ... | ... |
| 2 | A | 1 | 300 |
| 2 | B | 2 | 200 |
| ... | ... | ... | ... |
| 3 | A | 1 | 800 |
And I need another column that has the sum of the value of store 1 with store 2, but that the value is stored only in store 1, and the rest remain the same, such as the following example table. For store 1, the sum value column will be the sum of store 2 of the product and the corresponding day. And for the other stores (2,3, ..) the value will be the same as value.
| Store | Product | Day | Value | Sum value |
| 1 | A | 1 | 1000 | 1300 |
| 1 | B | 2 | 500 | 700 |
| ... | ... | ... | ... | ... |
| 2 | A | 1 | 300 | 300 |
| 2 | B | 2 | 200 | 200 |
| ... | ... | ... | ... | ... |
| 3 | A | 1 | 800 | 800 |
But it has to be in DAX, since they are calculated columns and I can't see them in power query, how can I do this sum with restrictions?
Hi @nicolasvc ,
According to your description, you can write a single DAX measure, which is more easier.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Please check the below picture and the attached pbix file.
All measures are in the attached pbix file.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 40 | |
| 38 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 68 | |
| 34 | |
| 33 | |
| 30 |