Reply
Kamana
New Member
Partially syndicated - Outbound

How to Create Measure Based on Slicer Value?

Hello All,

I am quite new to Power BI. I want to create a measure that calculates month average of total amount. But it should display according to year selected from Slicer.

Summarizing the above statement:

If Year selected from Slicer = 2023, then condition A,

If not Condition B in measure.

Thanks in advance. 

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

Syndicated - Outbound

hi @Kamana 

it is like:

IF(
    SELECTEDVALUE(TableName[Year]) = 2023,
    condition A, condition B
)

View solution in original post

2 REPLIES 2
Kamana
New Member

Syndicated - Outbound

Thanks for the solution, It worked pretty well.

FreemanZ
Super User
Super User

Syndicated - Outbound

hi @Kamana 

it is like:

IF(
    SELECTEDVALUE(TableName[Year]) = 2023,
    condition A, condition B
)
avatar user

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)