Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
User | Count |
---|---|
79 | |
74 | |
44 | |
32 | |
28 |
User | Count |
---|---|
100 | |
93 | |
52 | |
50 | |
48 |