Forum Discussion
Distinct Value between date range
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_Muhammad8 years ago
Community Champion
- Zubair_Muhammad8 years ago
Community Champion
- EMGI8 years agoFrequent Visitor
Zubair_Muhammadsorry for my late reply...
Thanks a lot for this solution, looks great. But i have a problem to filter this table for each customer.
To get the licence numbers for each customer i add the customer to your "new table". Thats easy...
But now i have the problem that the "ChargeEndDate" could be in a different moth. I only want to get the range of date for the active month in the filter:
For example, the first line should looks like this (and the following just like that):
Offer Name DateStart DateEnd Quantity(correct)
Office 365 Enterprise E1 09.08.2017 31.08.2017 165
...
If i have this view, i want to calculate (this table has a relationship to price table which contains the price for each day) the price for each period. How can i solve this?
Thanks a lot...