This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hello, I need your help.
I need have a visual KPI with sales ( "ventas" in my file) of the last week and the gol is sales of previus week. I can't do this.
I try to calculate "previous week= semana -1", but it isn't work.
My file is the following..
Thanks!
Solved! Go to Solution.
hi, @lbama7k
You may refer to this post I have solved:
And for your case, add a rank column by YearWeek.
Rank = RANKX(Table1,Table1[YearWeek],,ASC)
Then use this measure for kpi visual
Measure = CALCULATE(SUM(Table1[Ventas]),FILTER(ALLSELECTED(Table1),Table1[Rank]=MAX(Table1[Rank])-1))
Result:
and here is pbix file, please try it.
Best Regards,
Lin
Hello, I need your help.
I need have a visual KPI with sales ( "ventas" in my file) of the last week and the gol is sales of previus week. I can't do this.
I try to calculate "previous week= semana -1", but it isn't work.
My file is the following..
Thanks!
hi, @lbama7k
You may refer to this post I have solved:
And for your case, add a rank column by YearWeek.
Rank = RANKX(Table1,Table1[YearWeek],,ASC)
Then use this measure for kpi visual
Measure = CALCULATE(SUM(Table1[Ventas]),FILTER(ALLSELECTED(Table1),Table1[Rank]=MAX(Table1[Rank])-1))
Result:
and here is pbix file, please try it.
Best Regards,
Lin
Hello! It works. Thanks!!
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 |
|---|---|
| 33 | |
| 25 | |
| 23 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 64 | |
| 41 | |
| 27 | |
| 22 | |
| 20 |