Forum Discussion
CalculationGroups - switch between dates
- 11 months ago
Hi Fragmaticx please try this
Lastmile Cost - Different Period =VAR CurrentCalcItem = SELECTEDVALUE ( 'DateToUse'[Calculation group column] )RETURNCALCULATE (SUM ( BaseData[AmountDKK] ),BaseData[Type] = 2,BaseData[TransportType] = 1,SWITCH (CurrentCalcItem,"OperationalPeriod", BaseData[ShipmentPeriod] <> BaseData[OperationalPeriod],"ShipmentPeriod", BaseData[OperationalPeriod] <> BaseData[ShipmentPeriod]))
I am unsure as to what you are trying to do
Please include, in a usable format, not an image, a small set of rows for each of the tables involved in your request and show the data model in a picture, so that we can import the tables in Power BI and reproduce the data model. The subset of rows you provide, even is just a subset of the original tables, must cover your issue or question completely. Do not include sensitive information and do not include anything that is unrelated to the issue or question. Please show the expected outcome based on the sample data you provided and make sure, in case you show a Power BI visual, to clarify the columns used in the grouping sections of the visual.
Need help uploading data? click here
Want faster answers? click here