Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi All,
I've been given a dataset that has both Sales & Forecast in one dataset. This means that the below code does not work as it extends out the sales line to match the FY2020 months. Without duplicating the dataset, and stripping out Sales & Forecast into separate datas, is there a way to fix this quickly?
Hi @tylesftw ,
What's your Axis column?
Try create a measure like
If(selectedvalue(axis column)<=maxx(all(table),reportdate),1,0)
Then add the measure to visual filter measure is 1.
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I've parked it for the moment.. thanks for your help all
You could add another IF() in your return such that if the MIN('Date'[Date]) is greater than your lastsalesdate variable to return blank(), otherwise your calculation.
If this works for you, please mark it as solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
hmmmm 😞
@tylesftw ,The information you have provided is not making the problem clear to me. Can you please explain with an example.
Appreciate your Kudos.
Have added the visualisation.. essentially the data looks like
Time | Sales | Forecast
Jan | $2$00 | $200
.
.
April | 0 | $30
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |