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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.