Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Nonzy
Helper I
Helper I

Trying to create calculated column but gives me error.

Hi, 

 

I am trying to create a calculated column out of a measure. However, it gives me errors. Can you please help? My goal is to get that measure (% Average Inv/STU) to be filtered to only 2023 or Dec2023 data. I need to do it like that to use it in another multiplication measure later. Hope you can help. 

 

Nonzy_0-1716799270182.pngNonzy_1-1716799305476.pngNonzy_2-1716799310260.pngNonzy_3-1716799350160.png

Nonzy_4-1716799376452.png

 

3 REPLIES 3
rajendraongole1
Super User
Super User

Hi @Nonzy - You can create a calculated column  as follows:

 

Is2023OrDec2023 = IF(
YEAR([Report Date]) = 2023 || (YEAR([Report Date]) = 2023 && MONTH([Report Date]) = 12),
1,
0
)

 

Ensure the Ensure % Average Inv/STU Measure Exists:

% Average Inv/STU =
DIVIDE(
SUM('YourTable'[Inventory]),
SUM('YourTable'[Students]),
0
)

 

create a filtered measure as follows and apply it.

% Average Inv/STU Filtered =
CALCULATE(
[% Average Inv/STU],
FILTER(
'YourTable',
'YourTable'[Is2023OrDec2023] = 1
)
)

 

Apply in your visual filtered Measure in a New Calculation

YourFinalMeasure = [% Average Inv/STU Filtered] * [Another Measure]

 

Hope it works , 

 

Try and let know.

Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





@rajendraongole1 , thanks for your reply. I tried creating first column but it didn't work. it should show 1 on Dec 2023 correct? Doesn't do that. Can you help? 

Nonzy_0-1716806487708.png

 

@rajendraongole1 , okay so apparently had something wrong with my table. Fixed that now. but I still do not get the desired answer. if you look at below screenshot, I can see filtered measure only applies % for Dec23 , Jan 24 & Feb 24 and it is not the same % as Dec23. Dec23 was 32.68% while I can see 33.57% on the 3 months. Can you guide me on that ? 

Nonzy_1-1716810182858.png

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors