Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have to write a DAX measure that would skip a series of 0s in the data which does not have any value other than 0 after its occurrence.
Ex: For the below data, the data measure should only show data from 2021 to 2028 on a line chart
Year | Sales |
2021 | 0 |
2022 | 0 |
2023 | 5 |
2024 | 10 |
2025 | 3 |
2026 | 0 |
2027 | 0 |
2028 | 7 |
2029 | 0 |
2030 | 0 |
2031 | 0 |
2032 | 0 |
2033 | 0 |
2034 | 0 |
2035 | 0 |
Solved! Go to Solution.
Hi @Anonymous
This is how you should create your sales measure as shown below. If your measure is based of a column called "Total Sales Amount"
Sales = IF(SUM('Table Name'[Total Sales Amount]) = 0, BLANK(),SUM('Table Name'[Total Sales Amount]))
Hi @Anonymous
This is how you should create your sales measure as shown below. If your measure is based of a column called "Total Sales Amount"
Sales = IF(SUM('Table Name'[Total Sales Amount]) = 0, BLANK(),SUM('Table Name'[Total Sales Amount]))
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
58 | |
36 | |
28 | |
27 | |
27 |
User | Count |
---|---|
62 | |
53 | |
30 | |
24 | |
23 |