Forum Discussion
countrows YTD
HI PowerBiDD,
I can't view your report from hyperlink. Maybe you can share some sample data/pbix file for testing.
Regards,
Xiaoxin Sheng
Hi Xiaoxin
I don't know how I can add a file to my reply, so I am sharing a photo of the dashboard and one of the raw data.
The lower visuals should be a year-to-date line, but it's obviously not.
I hope this helps you.
Many thanks
- Anonymous8 years agoNot applicable
HI PowerBiDD,
You can upload it to onedirve/google drive, then share link here.
BTW, if you store records in different tables, I don't think you can direct use time intelligence functions to get previous from other tables.
Regards,
Xiaoxin Sheng
- Ashish_Mathur8 years agoSuper User
Hi,
I would suggest the following:
- Append both mail datasets into a single one
- Create a relationship from the Date column appearing in the appended dataset to the date column in your Calendar Table
- In your visual drag Months from the Calendar Table to the X - axis
- Drag the Year (from the Calendar Table) to the slicer and select any one year
- Write this measure
=CALCULATE(COUNTROWS(Data),DATESYTD(Calendar[Date]))
Hope this helps.
- PowerBiDD8 years agoFrequent Visitor
Hello guys,
thanks for your patience and helps.
I have copied the URL from my onedrive below. I have combined the 2017 and 2018 mails into a single table.
Ashish_Mathur: as you can see in the dashboard, I get an error message when I'm trying to produce your measure. Besides that I have also another question. Instead of creating filters per year, is het also possible to drag "Year" to the legend field. If I'm right then I should get 2 lines (one for each year), right?
Many thanks again.
- Ashish_Mathur8 years agoSuper User
Hi,
That link requires me to sign in.