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.
Screenshot: https://db.tt/O22dCVA5
As shown in the Screenshot in Dropbox, I want to create a new column that evaluates the amount of releases for a given year. So in the end I create a column for 2014, 2015, 2016, 2017, ...
Each of the columns shall contain the amount of releases per year. Each release has a complete release date.
I can't figure out how to create an additional column in the Products Table to show the amount of releases per year.
I need this for a KPI Card to indicate the increase or decrease regarding to the last year.
Thanks in advance for your help 🙂
Solved! Go to Solution.
You just have to use COUNTROWS function.
MyMeasure:=COUNTROWS(Releases)
For Calculated Column for individual years, Create a Year Column in Your Releases Table using,
Release Year=Year(Releases[Date])
Create Calculated Column Using Calculate For Individual Year
2014 Releases=CALCULATE([MyMeasure],Releases[Release Year]="2014")
You can also use SWITCH Function to count all the releases in one single column.
For detailed information on how to use SWITCH, please refer to this blog,
http://www.powerpivotpro.com/2012/06/dax-making-the-case-for-switch/
You just have to use COUNTROWS function.
MyMeasure:=COUNTROWS(Releases)
For Calculated Column for individual years, Create a Year Column in Your Releases Table using,
Release Year=Year(Releases[Date])
Create Calculated Column Using Calculate For Individual Year
2014 Releases=CALCULATE([MyMeasure],Releases[Release Year]="2014")
You can also use SWITCH Function to count all the releases in one single column.
For detailed information on how to use SWITCH, please refer to this blog,
http://www.powerpivotpro.com/2012/06/dax-making-the-case-for-switch/
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 |
---|---|
115 | |
100 | |
88 | |
68 | |
61 |
User | Count |
---|---|
152 | |
120 | |
102 | |
87 | |
68 |