Forum Discussion

roome's avatar
roome
New Member
7 years ago

Generating data for months from quarter

Hi,

I use PBI Desktop live connection to SSAS and in my data model I have table :

 

User          Time (Quarter)                            Time (Month)                      Amount USD Quarter

aaa2018Q101.04.201890
bbb2018Q201.07.2018150
ccc2018Q301.10.2018300

 

Amount USD Quarter is paid when Quarter are end.

I need to calculate part Amount USD for all months this Quarter like this :

 

User                Time (Quarter)                      Time (Month)                         Amount USD Quarter

aaa2018Q101.01.201830
aaa2018Q101.02.201830
aaa2018Q101.03.201830
bbb2018Q201.04.201850
bbb2018Q201.04.201850
bbb2018Q201.06.201850
ccc2018Q301.07.2018100
ccc2018Q301.08.2018100
ccc2018Q301.09.2018100

 

Maybe there is a way to calculate 1/3 Amount USD Quarter for a given month of the quarter in DAX?

How I can generate a details for months?

 

Thanks 

 

Adam

4 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    If you can use a composite model, one way might be to create an Enter Data query like this:

    MonthTable

    Time (Quarter), Time(Month)

    2018Q1,01.01.2018

    2018Q1,01.02.2018

    2018Q1,01.03.2018

    ...

     

    Create a relationship on Time (Quarter) to your original table. 

     

    Now, create a measure like this (calling your original table "Table":

    Measure = SUM([Amount USD Quarter])/3

     

     

     

     

     

     

  • v-yulgu-msft's avatar
    v-yulgu-msft
    Microsoft Employee

    Hi roome,

     

    Which data source did you connect to? Tabular or Multidimensional?

     

    Regards,

    Yuliana Gu

    • roome's avatar
      roome
      New Member

      Hi Yuliana,

      I use tabular model.

       

      Regards Adam

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi was this issue ever resolved. This is exactly the problem I've got and can't find a solution anywhere. Thanks in advance