Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I'm still quiet a new in the Power Bi and need calculated measures for particular year(2022 and 2023) for a table below.
any help counts Thank you.
Solved! Go to Solution.
Hi @poko,
To create calculated measures in Power BI for the years 2022 and 2023, you would need to:
Here’s how you can create calculated measures step by step:
Assuming you have a column named Year, SupervisionType (Enhanced or Standard), DurationCategory (<2 years, 2-5 years, >5 years), and Count:
Enhanced_2022_LessThan2Years = CALCULATE( SUM(Table[Count]), Table[Year] = 2022, Table[SupervisionType] = "Enhanced Supervision", Table[DurationCategory] = "<2 years" )
Enhanced_2023_2to5Years = CALCULATE( SUM(Table[Count]), Table[Year] = 2023, Table[SupervisionType] = "Enhanced Supervision", Table[DurationCategory] = "2-5 years" )
Standard_2022_GreaterThan5Years = CALCULATE( SUM(Table[Count]), Table[Year] = 2022, Table[SupervisionType] = "Standard Supervision", Table[DurationCategory] = ">5 years" )
If you want to dynamically calculate values based on slicers for Year, SupervisionType, and DurationCategory:
DynamicMeasure = CALCULATE( SUM(Table[Count]), ALLSELECTED(Table[Year]), ALLSELECTED(Table[SupervisionType]), ALLSELECTED(Table[DurationCategory]) )
If your data model or column names differ, share more details so I can tailor the measures to your data.
Please mark this as solution if it helps. Appreciate Kudos.
Hi, @poko
Thanks for the reply from FarhanJeelani and Thejeswar. As FarhanJeelani said, what are you currently trying to achieve and giving the results you want will help you achieve what you need faster.
Best Regards,
Yang
Community Support Team
Hi @poko,
To create calculated measures in Power BI for the years 2022 and 2023, you would need to:
Here’s how you can create calculated measures step by step:
Assuming you have a column named Year, SupervisionType (Enhanced or Standard), DurationCategory (<2 years, 2-5 years, >5 years), and Count:
Enhanced_2022_LessThan2Years = CALCULATE( SUM(Table[Count]), Table[Year] = 2022, Table[SupervisionType] = "Enhanced Supervision", Table[DurationCategory] = "<2 years" )
Enhanced_2023_2to5Years = CALCULATE( SUM(Table[Count]), Table[Year] = 2023, Table[SupervisionType] = "Enhanced Supervision", Table[DurationCategory] = "2-5 years" )
Standard_2022_GreaterThan5Years = CALCULATE( SUM(Table[Count]), Table[Year] = 2022, Table[SupervisionType] = "Standard Supervision", Table[DurationCategory] = ">5 years" )
If you want to dynamically calculate values based on slicers for Year, SupervisionType, and DurationCategory:
DynamicMeasure = CALCULATE( SUM(Table[Count]), ALLSELECTED(Table[Year]), ALLSELECTED(Table[SupervisionType]), ALLSELECTED(Table[DurationCategory]) )
If your data model or column names differ, share more details so I can tailor the measures to your data.
Please mark this as solution if it helps. Appreciate Kudos.
Hello Thank you for response I will share more details
Hi @poko ,
The Details you have given might not be sufficient to answer this question. If you can share more information on this like the columns used, how is the time period present in the table, how is the supervision type refered etc.
In simple terms, share some sample data using which you are creating this table that you have shown in your screenshot
Regards,
Hello Thank you for response I will share more information with you
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
71 | |
70 | |
43 | |
31 | |
26 |
User | Count |
---|---|
89 | |
49 | |
44 | |
38 | |
37 |