Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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 |
---|---|
50 | |
32 | |
27 | |
26 | |
25 |
User | Count |
---|---|
62 | |
49 | |
29 | |
24 | |
23 |