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
jimrosser
Helper III
Helper III

If selected value is All Formula

Hi I"m trying to create a measure based on two measures when the selected value is = "ALL" or <> "ALL"

Below is the measure I've been working with but it won't calculate.  Any helps is much appreciated

 

BUD_Sales_SELECTED_PERIOD =
    IF (
    SELECTEDVALUE (vwPBIDate[Fiscal Month Number]) = "All",
    calculate( [Bud_Sales_Rev_ALL])  ,
   if ( SELECTEDVALUE ( vwPBIDate[Fiscal Month Number] ) <> "All", calculate( [Bud_Sales_YEAR]) ) )
1 ACCEPTED SOLUTION
Deku
Super User
Super User

If date table is filtered return the all measure else the year measure

IF (
    not ISCROSSFILTER(vwPBIDate[Fiscal Month Number]),
    calculate( [Bud_Sales_Rev_ALL]),
    calculate( [Bud_Sales_YEAR]) 
)

 


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

2 REPLIES 2
Deku
Super User
Super User

If date table is filtered return the all measure else the year measure

IF (
    not ISCROSSFILTER(vwPBIDate[Fiscal Month Number]),
    calculate( [Bud_Sales_Rev_ALL]),
    calculate( [Bud_Sales_YEAR]) 
)

 


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Thanks Deku - I did have to change the ISCROSSFILTER to ISCROSSFILTERED but it worked, Thank you very much!

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