cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
EV Regular Visitor
Regular Visitor

Return number of days invoiced irrespective of the slicer

Hello All, I have been breaking my head to find a solution. I need to return Avg Daily Sales with calculation of SalestotalMTD/Days Invoiced. I have a slicer for Division,based on the selection, days invoiced value changes accordingly. My problem is that I need to return Avg Daily Sales Total with this calculation, SalestotalMTD/(Value of Days Invoiced for 'C' division), FILTER is not working because of slicer
Days Invoiced should consider 'C' Division only irrespective of slicer selection

 

Days InvoicedDivisionAvg Daily SalesDays Invoiced TotalAvg Daily Sales TotalSalesTotal MTD
8A$45,739.516$60,986.02$365,916.10
6B$148,800.436$148,800.43$892,802.59
6C$179,075.286$179,075.28$1,074,451.69

 

Can someone help please?

1 ACCEPTED SOLUTION

Accepted Solutions
EV Regular Visitor
Regular Visitor

Re: Return number of days invoiced irrespective of the slicer

This worked, however when slicer is selected it shows value only for C division and not for the A and B, it returns blank for A and B.  

 

I updated Days Invoiced with the below, key was ALLSELECTED(Fact_Union),

 

CALCULATE (
DISTINCTCOUNT('Fact_Union'[Date]),
FILTER (
ALLSELECTED(Fact_Union),
AND(OR('Fact_Union'[SalesTotal] >0, 'Fact_Union'[SalesTotal] <0 ),Fact_Union[Division]="C")
)
)
 
1 REPLY 1
EV Regular Visitor
Regular Visitor

Re: Return number of days invoiced irrespective of the slicer

This worked, however when slicer is selected it shows value only for C division and not for the A and B, it returns blank for A and B.  

 

I updated Days Invoiced with the below, key was ALLSELECTED(Fact_Union),

 

CALCULATE (
DISTINCTCOUNT('Fact_Union'[Date]),
FILTER (
ALLSELECTED(Fact_Union),
AND(OR('Fact_Union'[SalesTotal] >0, 'Fact_Union'[SalesTotal] <0 ),Fact_Union[Division]="C")
)
)
 

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 260 members 2,748 guests
Please welcome our newest community members: