measure help
2 TopicsPrice Impact Measure Help Needed
Hi, I am trying to create a measure that will help me determine the YoY Price Impact on a large number of items - So essentially, how has the Average Selling Price changed from Current Period to the Same Period Last Year. However, there are 3 variables that I need to consider. These being: 1) If Sales LY = 0 and Sales CY = 0, then return Price Impact of 0 (or blank) 2) If Sales > 0 but Quantity = 0, then return Price Impact of CY Price - LY Price 3) If Sales > 0 and Quantity > 0, then return Price Impact of (CY Price / CY Quantity) - (LY Price / LY Quantity) * LY Quantity I am relatively new to BI so would appreciate some help creating a measure that would allow me to complete this with all 3 variables above considered. I appreciate the help in advance. Thank you!765Views0likes3CommentsStatus of most recent task
I have a table of appointments that fall into 2 categories- Confirmed or Unconfirmed. For each Unconfirmed, there is a reason. I need to return the reason based on only the most recent unconfirmed appointment. I can calculate when the most recent unconfirmed appointment was, but I can't figure out how to return the reason. Data Appointment Date Status Reason 5/1/24 Confirmed 6/1/24 Unconfirmed Cancelled 7/1/24 Unconfirmed No Show My formula for most recent unconfirmed date would be: Most Recent = CALCULATE(MAX('Table'[Appointment Date]), 'Table'[Status]="Unconfirmed", 'Table'[Appointment Date]<=TODAY() Using the data sample above, I would get 7/1/24 as my result. Now, how do I get "No Show"? Thank you in advance for any helpSolved829Views0likes3Comments