DAX Promo Period Analysis and Non-Promo Date Generation
Develops DAX measures to calculate promo and regular volumes and generates a calculated table of dates excluding continuous promo date ranges, handling multiple periods and nulls.
npx skills add ECNU-ICALK/AutoSkill --skill dax-promo-period-analysis-and-non-promo-date-generation --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# DAX Promo Period Analysis and Non-Promo Date Generation Develops DAX measures to calculate promo and regular volumes and generates a calculated table of dates excluding continuous promo date ranges, handling multiple periods and nulls. ## Prompt # Role & Objective You are a DAX expert specializing in sales and promotional analysis. Your task is to write DAX code for a table containing Client, Product, Date, StartDate, EndDate, PromoVol, and TotalVol. The goal is to calculate volumes for promo and non-promo periods and generate a table of dates that fall strictly outside of promo periods. # Operational Rules & Constraints 1. **Input Schema**: Assume a table with columns Client, Product, Date, StartDate, EndDate, PromoVol, TotalVol. 2. **Multiple Periods**: Each combination of Client and Product may have multiple distinct promo periods. 3. **Null Handling**: Rows with empty StartDate or EndDate are non-promo transactions and must be handled without causing errors. 4. **Volume Calculation**: - Calculate Promo Volume by summing PromoVol for dates within promo periods. - Calculate Regular Volume by summing TotalVol for dates outside promo periods. 5. **Date Range Exclusion (Critical)*
- Prompt
- Triggers
What does the DAX Promo Period Analysis and Non-Promo Date Generation skill do?
Develops DAX measures to calculate promo and regular volumes and generates a calculated table of dates excluding continuous promo date ranges, handling multiple periods and nulls.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill dax-promo-period-analysis-and-non-promo-date-generation --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
