I Have 2 Dimensions: Time and Currency I also have to fact tables, exchange rate and sales Both fact tables have references to Time and Currency Dimension. The user want to select using excel the sales in the local currency and the correspondent conversion in the reference currency (the reference currency is fixed) in the selected date. To obtain the desired exchange date I need a date and a currency. The user select in excel a specific date but the currency must be the current currency in the sales table. I achived something like this in the query editor:[code="sql"]withMEMBER [Measures].[Current Rate To Euro] AS (([ISO Currencies].[ISO Curr Code].CurrentMember, [Time].[Date Id].CurrentMember, [Measures].[Exchange Rate To Euro]))MEMBER [Measures].[Net Sales Euro] AS ( [Measures].[OOH Net Sales Dom Snapshot]/[Measures].[Current Rate To Euro])SET NE_measures as {[measures].[Net Sales Value Domestic], [Measures].[Exchange Rate To Euro]}member m_NonEmptyCheck as Generate( NE_measures ,{Iif([Measures].CurrentMember, [Measures].CurrentMember, NULL)}).Count = NE_measures.Count,NON_EMPTY_BEHAVIOR = ( {[measures].[Net Sales Value Domestic], [Measures].[Exchange Rate To Euro]})select {[Measures].[Net Sales Euro], [Measures].[OOH Net Sales Dom Snapshot],[Measures].[Current Rate To Euro]} on 0,Filter( {[ISO Currencies].[ISO Curr Code].[ISO Curr Code]}*{[Time].[Date Id].&[2581]*[Customers].[PDU Description].[PDU Description]} ,m_NonEmptyCheck ) on 1from [DM ISR DEV];[/code]But I don't know how to translate the last select in a calculated measures in order to let the customer only to select this measures in the values area and the time in the filters. Any comment would be appreciated Kind Regards
↧