Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello Everyone,
Name 2021 Count 2022 count 2025 Count
A 13
B 3
C 9
D 7
I have this data I need to add calculated columns Dynamically -- 2021 count, 2022 count .... 2025 count on every year .
Will it be possible in Power BI?
Regards,
Raman PC
Solved! Go to Solution.
Hi @Raman3456 ,
Yes. It is easily doable in Power BI.
Create a Calendar table using CALENDAR and link it to your data table by year. Use a Matrix visual with Name in Rows, Year from the Calendar table in Columns, and your Count in Values for a dynamic, scalable solution.
Best regards,
Thanks for the reply from DataNinja777 , please allow me to provide another insight:
Hi @Raman3456 ,
Here are the steps you can follow:
1. In Power Query – Add Column – Date – Year -- Year.
2. Select [Year] – Tramsform – Pivot Column.
Values Column – [Date]
Aggregate Value Function – Count(ALL)
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Thanks for the reply from DataNinja777 , please allow me to provide another insight:
Hi @Raman3456 ,
Here are the steps you can follow:
1. In Power Query – Add Column – Date – Year -- Year.
2. Select [Year] – Tramsform – Pivot Column.
Values Column – [Date]
Aggregate Value Function – Count(ALL)
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Raman3456 ,
Yes. It is easily doable in Power BI.
Create a Calendar table using CALENDAR and link it to your data table by year. Use a Matrix visual with Name in Rows, Year from the Calendar table in Columns, and your Count in Values for a dynamic, scalable solution.
Best regards,
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
21 | |
15 | |
14 | |
11 | |
9 |
User | Count |
---|---|
28 | |
23 | |
12 | |
11 | |
10 |