Count week day numbers in dax

sadath

Active Member
Joined
Oct 10, 2004
Messages
267
Office Version
  1. 365
Platform
  1. Windows
Hi

Stuck in while counting no of each week day in selected period

tried this to count total Saturday SatTot:=calculate(countrows('date'[Date]),filter(weekday('date'[Date])=1))


My ultimate aim to break the Sales Target in days, My Target sheet tab is like

StoreCode | Date | Tot Target | Sun | Mon| Tue | Wed| Thu| Fri| Sat

Store Code : Unique code
Date : date entered as 1st of month ie 1/4/2016 for April
Tot Taget : Total target for the month Eg. 48,000
Sun : Contribution % of Sunday Target Eg 3.5%
Mon : Contibution % of Monday Target Eg 3% so.. on

assume when I select 3rd Apr to 11th April calculation should be
48000* ((Sun*2)+(Mon*2)+(Tue*1)+(Wed*1)+(Thu*1)+(Fri*1)+(Sat*1)) Here 1 and 2 represent howmay week days between the selected date.
how can this formulate in DAX
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,224,163
Messages
6,176,812
Members
452,744
Latest member
Alleo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top