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.
Hi Everyone,
I am trying to create a measure that calculate the first 12 month of a product sales and when it's more than 12 months, the measure will not calculate the product sales anymore.
I have two tables sales and dimdate.
I would like to use the launch date to create the measure something that i am not doing right now.
This is my measure :
Solved! Go to Solution.
@Anonymous , try something like this
CALCULATE (
SUM ( Sales[Amount] ),
FILTER (
'Sales',
Sales[Date] >= MIN ( NPD[Launch Date] )
&& Sales[Date]
<= eomonth(MAX ( NPD[Launch Date] ),12)
))
or
CALCULATE (
SUM ( Sales[Amount] ),
FILTER (
'Sales',
Sales[Date] >= MIN ( NPD[Launch Date] )
&& Sales[Date]
<= MAX ( NPD[Launch Date] ) +365
))
@Anonymous , try something like this
CALCULATE (
SUM ( Sales[Amount] ),
FILTER (
'Sales',
Sales[Date] >= MIN ( NPD[Launch Date] )
&& Sales[Date]
<= eomonth(MAX ( NPD[Launch Date] ),12)
))
or
CALCULATE (
SUM ( Sales[Amount] ),
FILTER (
'Sales',
Sales[Date] >= MIN ( NPD[Launch Date] )
&& Sales[Date]
<= MAX ( NPD[Launch Date] ) +365
))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
93 | |
75 | |
62 | |
50 |
User | Count |
---|---|
147 | |
107 | |
105 | |
87 | |
61 |