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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
ERing
Post Partisan
Post Partisan

Need help on a Measure with multiple filter criteria

I have sample data below in a table titled Fact_Order_Revenue. This table is connected to my DIM_Calendar table using Fact_Order_Revenue.Date to DIM_Calendar.Date.

I am also using DIM_Calendar.Date to drive the date slicer on my dashboard.

I need a measure that calculates Total Revenue with the following criteria:
1. SUM Revenue + Revenue_Added
2. Conversion_Source = Online + Phone

3. CreatedOnDate AND CompletedOnDate are between the dates in my date slicer

I'm unsure how to incoproate this criteria into a measure so any help is much appreciated!

 

DateMarkting ChannelConversion_SourceRevenueRevenue_AddedOrder_CountAdded_OrdersCreatedOnDateCompletedOnDate
9/23/2023GoogleOnline9803070429/27/202310/2/2023
5/31/2022Social MediaPhone10414571356/3/20226/4/2022
12/19/2023TelevisionOnline215641245112/22/202312/26/2023
2/6/2023RadioIn Person42314094232/9/20232/12/2023
10/10/2022EmailOnline471415363310/13/202210/14/2022
4/5/2022SMSPhone29222601214/8/20224/9/2022
10/2/2022Direct MailOnline330844713110/5/202210/9/2022
6/8/2023GooglePhone6914072356/11/20236/13/2023
9/15/2022Social MediaIn Person21523399319/18/20229/22/2022
10/5/2021TelevisionOnline477448685210/8/202110/9/2021
5/13/2023RadioOnline3685657335/16/20235/21/2023
11/23/2023EmailPhone80617845511/26/202312/1/2023
9/4/2022SMSIn Person34234401329/7/20229/10/2022
11/15/2023Direct MailPhone105817281111/18/202311/22/2023
7/2/2023GoogleOnline48362519547/5/20237/10/2023
10/23/2022Social MediaOnline376921413110/26/202210/28/2022
9/23/2021TelevisionOnline31822279329/26/20219/27/2021
11/24/2022RadioIn Person121146274511/27/202211/30/2022
3/21/2023EmailPhone48474381143/24/20233/26/2023
1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

lbendlin_0-1743121994755.png

Total Revenue = 
var d = VALUES('Calendar'[Date])
return CALCULATE(sum(Fact_Order_Revenue[Revenue])+sum(Fact_Order_Revenue[Revenue_Added]),
          treatas({"Online","Phone"},Fact_Order_Revenue[Conversion_Source]),
          Fact_Order_Revenue[CreatedOnDate] in d,
          Fact_Order_Revenue[CompletedOnDate] in d)

 

View solution in original post

3 REPLIES 3
v-bmanikante
Community Support
Community Support

Hi @ERing,

 

we would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.


If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.


Regards,
B Manikanteswara Reddy

Ashish_Mathur
Super User
Super User

Hi,

What dates will you select in the slicer and what exact number are you expecting in the result.  Highlight those rows for us to know the rows that should be considered.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

lbendlin_0-1743121994755.png

Total Revenue = 
var d = VALUES('Calendar'[Date])
return CALCULATE(sum(Fact_Order_Revenue[Revenue])+sum(Fact_Order_Revenue[Revenue_Added]),
          treatas({"Online","Phone"},Fact_Order_Revenue[Conversion_Source]),
          Fact_Order_Revenue[CreatedOnDate] in d,
          Fact_Order_Revenue[CompletedOnDate] in d)

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.