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
Hi,
DAX-newbie here. I'm losing my mind with this problem, so time to ask help!
I have a data source that has dates, departments and for each date the sum of total value of all transactions. If on Monday the daily transactions are 50 and on Tuesday 30, then in the table Mon is 50 and Tue 80.
What I want to achieve is the daily sales for each department. I'm sure this is easy to achive, but I'm just not getting it. I keep getting stuck on trying to filter by department, and it being impossible because text cannot be used in boolean experssion. I imagine this is DAX101-stuff, so the solution I imagine is simple
Could someone help out?
| DATE | DEPARTMENT | TOTALSOLD | DAILYTRANSACTIONS (THIS IS WHAT I WANT) |
| 1/1/2020 | Sports | 100 | 100 |
| 1/1/2020 | Clothing | 50 | 50 |
| 1/1/2020 | Food | 70 | 70 |
| 1/2/2020 | Sports | 150 | 50 |
| 1/2/2020 | Clothing | 80 | 30 |
| 1/2/2020 | Food | 90 | 20 |
| 1/3/2020 | Sports | 170 | 20 |
| 1/3/2020 | Clothing | 120 | 40 |
| 1/3/2020 | Food | 110 | 30 |
Solved! Go to Solution.
Hi @Anonymous
Create rank column =
Hi @Anonymous
IS TotalSold column or measure?
Thanks,
Pravin
Hi @Anonymous
It's a column.
Hi @Anonymous
Create rank column =
That worked perfectly, thank you so much, @Anonymous !
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 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 8 | |
| 8 | |
| 7 |