Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I have created a matrix that calculates number of students for every semester. But my issue is creating a calculation that shows difference between semesters. For example, I have 5,000 students for Spring 2016 and 4,000 student for Spring 2015. How can I calculate Spring 2016 - Spring 2015 and show 1,000 difference.
Thank you.
Assuming you do not have a datetable your data looks most likely like this
Year (or semester) - Name
1999 (Semester X) - John Malkovich
2001 (Semester 2) - Ricky Martin
...
One of the column must be your 'date column' somehow so you can have dates or semesters on your x-axis
The measures are quite trivial after that
No. of students YTD = CALCULATE(DISTINCTCOUNT((Name Column)) , DATESYTD(Date Column))
where YTD is short for Year To Date
No. of students LY = CALCULATE([No. of students YTD] , SAMEPERIODLASTYEAR(Date Column))
where LY is short for Last Year
Figure this one out... and you will figure out why datetables are really useful
google... ehm.. sorry BING is your friend
Do you have a Date Table? To make time intelligence functions work you will need one.
see if this post help you => http://community.powerbi.com/t5/Desktop/Compare-MTD-with-previous-period/m-p/24656#U24656
also try this => http://community.powerbi.com/t5/Desktop/Time-Intelligence-YTD-SamePeriodLastYear-Odd-behavior/m-p/14...
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |