Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello all.
I have a table AAA with ShopNb, qty Visiteurs and date (2021 and 2020 years) and table Calendar ( CALENDARAUTO ()
I need to compare two measure, which have visitors values> 0 for the same stores for the same period (2021 vs 2020 ( example 01/01/2021 vs 01/01/2020)
I created:
1. Traffic 2021 = sum('AAA'[Visiteurs])
2. Traffic 2020 = CALCULATE(sum('AAA'[Visiteurs]),SAMEPERIODLASTYEAR(Calendar'[Date]))
after that I have such table:
I don`t know how use filter Traffic 2021>0 & Traffic 2020>0, because it`s measures. I tried to use if statement, but the sum of column doesn`t change. How can i solve this problem? Thanks a lot
@amitchandak ,it only works for for the table. When i create measure TOTALMTD() it doest work. is there a solution when using functions TOTALMTD()?
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 8 | |
| 8 |