Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi. I have financial data from various companies. For company A data is provided as YTD values, for company B data is provided as monthly values. This can be seeen in the value column. I wrote the following to get values from both companies on the same standard i.e. YTD format.
Solved! Go to Solution.
You can likely fix this by iterating over the companies so that the logic for each is handled separately. This might look something like this:
SUMX (
VALUES ( IS_consolidated[Company] ),
IF (
IS_consolidated[Company] = "Company B",
TOTALYTD ( SUM ( IS_consolidated[Value] ), 'Date'[Date] ),
CALCULATE ( SUM ( IS_consolidated[Value] ) )
)
)
However, the proper way to do this is to pre-process your data to standardize the data format rather than trying to deal with multiple formats simultaneously. You'll be glad you did in the long run.
The answer is the same. You'll need to iterate over the granularity you want to sum over.
Value_YTD_std_X = SUMX ( VALUES ( Company[CompanyName] ), [Value_YTD_std] )
You can likely fix this by iterating over the companies so that the logic for each is handled separately. This might look something like this:
SUMX (
VALUES ( IS_consolidated[Company] ),
IF (
IS_consolidated[Company] = "Company B",
TOTALYTD ( SUM ( IS_consolidated[Value] ), 'Date'[Date] ),
CALCULATE ( SUM ( IS_consolidated[Value] ) )
)
)
However, the proper way to do this is to pre-process your data to standardize the data format rather than trying to deal with multiple formats simultaneously. You'll be glad you did in the long run.
Thank you very much @AlexisOlson . I get your point on preprocessing the data as good practice. A follow up question if I may? Using your formula the above issue is resolved. However, I apply your formula and then take the output and standardise the signage by applying the following ruleset
For some reason I get absolute value of A + B. What I am looking for is sum of C+D. Can you help?
Thank you
The answer is the same. You'll need to iterate over the granularity you want to sum over.
Value_YTD_std_X = SUMX ( VALUES ( Company[CompanyName] ), [Value_YTD_std] )