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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Double filtering?

Hello All,

 

I just recently started workign with Power BI/DAX. Via tee help of internet I create below:

Budget Cur_Month Cur_Year =
CALCULATE(
[Budget];
FILTER(
'sales InvoiceItems';RELATED(
'sales Time'[Cal_Year]
) = [calc Cur_Year] && RELATED(
'sales Time'[Month_No]
) = [calc Cur_Month]
)
)
which should give me the budget for a month, but I need to incorperate another filter/parameter from the below table:Channel.jpg
 
Can you please give me a hint?
 
1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

If your tables have relationships as below:

1.png

 

Create a measure in sales InvoiceItems

measure_budget = SUM('sales InvoiceItems'[budget]) 

Add this measure in the matrix viusal ad below, along with "year" and "month" columns from "sales Time" table.

2.png3.png

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

If your tables have relationships as below:

1.png

 

Create a measure in sales InvoiceItems

measure_budget = SUM('sales InvoiceItems'[budget]) 

Add this measure in the matrix viusal ad below, along with "year" and "month" columns from "sales Time" table.

2.png3.png

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hello Maggie, 

 

I will give it a try ans let you know the result

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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