Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I am trying to calculate the number of sales that occurred during a specific date range 7/1-6/30
I tried a TOTALYTD, but that didn't work. I have a Calendar Table that is connected to my Totals Table via a Date for each month. So each entry for July/18 is 7/30/18 to makr when the entry was made into the database. However, I have original sales dates that I would like to use for my measure. Here was the TOTALYTD I tried that failed and a pic of my model :
Hi,
From the Calendar Table, either drag the Year and Month column to your visual or create 2 slicers and select any one Year and Month. Then write these measures:
Total sales = SUM('Totals'[Sales])
Total sales YTD = CALCULATE([Total Sales],DATESYTD(Calendar[Date],"30/6"))
Hope this helps.
YTD is only going to give you 2019. Have you tried using a date slicer? The slicer is the visualization in the bottom left corner next to the Matrix.
User | Count |
---|---|
84 | |
76 | |
75 | |
43 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
48 | |
43 |