Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
Im having difficulty to write DAX formula to accommodate both situations below:
- Situation 1: Filter by channel, Avg Daily Sales = MTD Sales / Actual Selling Days (by each channel)
- Situation 2: No filter, Avg Daily Sales = MTD Sales (Total) / Actual Selling Days (by Main Channel)
Existing formula, works for Situation 1 but not for Situation 2
Actual ADS =
sum(MTD Sales)/
max(Actual selling days)
Sample data:
Channel | Actual selling days | MTD Sales | Avg daily sales |
Main Channel | 8 | 100 | 13 |
Sub channel 1 | 9 | 50 | 6 |
Sub channel 2 | 5 | 50 | 10 |
Total MTD Sales = 200
Avg Daily Sales = 200/ 8 = 25
Thanks much for your help!
Solved! Go to Solution.
@milkynight Perhaps use ISFILTERED or HASONEVALUE?
@Greg_Deckler Thanks, I haven't known about these 2 before. Let me try to see if it works!
@milkynight Perhaps use ISFILTERED or HASONEVALUE?
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |