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.
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
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 | |
55 | |
54 | |
38 | |
29 |
User | Count |
---|---|
78 | |
62 | |
45 | |
40 | |
40 |