cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
regasanyoto Member
Member

How to SUM amount in the next three month

Hello guys,

 

I would like to know how to calculate the total initial after three months.

 

The measure of Initial  is :

CALCULATE(DISTINCTCOUNT('Fact User License'[ObjectId]),

                                       FILTER('Fact User License','Fact User License'[InitialDate] = "1")
                             )

 

In the image below there must be a new column based on the total Initial after three months. 

 

The expected result for the first row with this new measure must be  14. This because 8 (2018/01)    + 3 (2018/02)  + 3 (2018/03) = 14.

 

any suggestion to create a new measure or calculated column to realize the total initial amount after first three months?

 

Thanks in advaced!

 

2018-05-21 17_23_58-User and Portal User License Insights - Power BI Desktop.png

1 ACCEPTED SOLUTION

Accepted Solutions
v-jiascu-msft Super Contributor
Super Contributor

Re: How to SUM amount in the next three month

Hi @regasanyoto,

 

Try the formula below please.  A date table is needed if you don't have one.

Measure =
CALCULATE (
    DISTINCTCOUNT ( 'Fact User License'[ObjectId] ),
    DATESINPERIOD ( 'datetable'[date], FIRSTDATE ( 'datetable'[date] ), 3, MONTH ),
    FILTER ( 'Fact User License', 'Fact User License'[InitialDate] = "1" )
)

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 REPLIES 2
v-jiascu-msft Super Contributor
Super Contributor

Re: How to SUM amount in the next three month

Hi @regasanyoto,

 

Try the formula below please.  A date table is needed if you don't have one.

Measure =
CALCULATE (
    DISTINCTCOUNT ( 'Fact User License'[ObjectId] ),
    DATESINPERIOD ( 'datetable'[date], FIRSTDATE ( 'datetable'[date] ), 3, MONTH ),
    FILTER ( 'Fact User License', 'Fact User License'[InitialDate] = "1" )
)

Best Regards,

Dale

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

Re: How to SUM amount in the next three month

Thanks, it works!

Helpful resources

Announcements
Community Highlights

Community Highlights

Find out what's new in the Power BI Community!

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 363 members 3,817 guests
Please welcome our newest community members: