Forum Discussion
Distinct Value between date range
Hey everybody...i need your help!
I have a calculated table you can see below:
In the first column you can see one product (but got many different ones; this ist just an example), the "order date" and the number of licences for each day.
A customer can change his number of licences daily, the red marked fields show you when the customer changes his number.
At the end the table should look like this:
OfferName DateStart DateEnd Quantity(correct)
Office 365 Enterprise 01.08.2017 07.08.2017 1060
Office 365 Enterprise 08.08.2017 17.08.2017 1065
Office 365 Enterprise 18.08.2017 27.08.2017 1067
Office 365 Enterprise 28.08.2017 28.08.2017 1070
Office 365 Enterprise 29.08.2017 31.08.2017 1075
next product.... .... .... ....
....
Guys, I'm thankful for every help.
7 Replies
- Zubair_MuhammadCommunity Champion
Hi EMGI
Please try this
Go to Modelling Tab>>>NEW TABLE
New Table = SUMMARIZE ( TableName, TableName[OfferName], TableName[Quantity(correct)], "DateStart", CALCULATE ( FIRSTNONBLANK ( TableName[Date], 1 ) ), "DateEnd", CALCULATE ( LASTNONBLANK ( TableName[Date], 1 ) ) )- Zubair_MuhammadCommunity Champion
- Zubair_MuhammadCommunity Champion