Forum Discussion
if Statement using Concatenate for SumX
I am calculating a cost per product times volume if the concatenate (code, production site, project name) match. However, the code can switch from an old code to new code when production shifts for that project. Volumes are tracked by code. Is there a way to structure a concatenate to say if there is old code pick up volumes of old code and if there is new code pick up volumes of new code?
1 Reply
- Greg_Deckler
Community Champion
Anonymous Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.