Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
roome
New Member

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 4
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

v-yulgu-msft
Employee
Employee

Hi @roome,

 

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

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Yuliana,

I use tabular model.

 

Regards Adam

Greg_Deckler
Super User
Super User

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

 

 

 

 

 

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.