This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
Hi, I've searched for my issue but I couldn't find the solution I need.
My problem is that I'm trying to create a KPI to show current week sales vs prev week and the same with months but it isn't working.
it shows me (blank) for current sales and current sales in prev sales.
Here is the dax formula for each measure.
Solved! Go to Solution.
Hi @ezepbi
The visualization doesn't work because it doesn't apply any filtering based on the measures you've placed on it.
Unlike tables or other charts, cards don't have a "date" column that provides context.
Therefore, for it to work, the card must be filtered either by a slicer if it's dynamic or simply by a related filter if it always needs to be "last by report day".
For example, here's how it would look when comparing months:
For the weeks you should use the same logic on week granularity.
The pbix with the example is attached.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi @ezepbi
The visualization doesn't work because it doesn't apply any filtering based on the measures you've placed on it.
Unlike tables or other charts, cards don't have a "date" column that provides context.
Therefore, for it to work, the card must be filtered either by a slicer if it's dynamic or simply by a related filter if it always needs to be "last by report day".
For example, here's how it would look when comparing months:
For the weeks you should use the same logic on week granularity.
The pbix with the example is attached.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
you're awesome thanks
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 25 | |
| 24 | |
| 22 | |
| 21 | |
| 19 |
| User | Count |
|---|---|
| 56 | |
| 52 | |
| 49 | |
| 25 | |
| 25 |