Forum Discussion
abhishekrws01
2 years agoHelper I
How to fill missing dates
Hello - I am looking for some help. I have the following three tables in the model: 1. Calendar table - has all the dates 2. DailyTxdataSQL - Fact table recording sales by day and country. 3....
Anonymous
2 years agoNot applicable
Hi abhishekrws01 ,
Based on the information you provided, you can try to solve the problem with the dax below:
Working Days Count =
CALCULATE(
COUNTROWS(Calendar),
Calendar[Date] >= MIN(DailyTxdataSQL[Date]),
Calendar[Date] <= MAX(DailyTxdataSQL[Date]),
Calendar[Weekdays] = 1,
NOT(ISBLANK(DailyTxdataSQL[Country])),
ALLEXCEPT(DailyTxdataSQL, DailyTxdataSQL[Country])
)
How to Get Your Question Answered Quickly - Microsoft Fabric Community
If it does not help, please provide more details with your desired out put and pbix file without privacy information.
Best Regards,
Ada Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.