Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi Everyone!!!
I have this issue, please give me some advices:
I have two tables:
1. Daily Sales order Revenue includes: order id, date (DAILY), product shop information,... revenue
2. Monthly target table: Year, month, target value (MONTHLY), shop ID, mm-yyyy (01-2022), Frist day of month, day end of month (2 end column that i created)
I wanna create a DAX to calculate Target value and apply date daily slicer. For instance:
Target value 01.2022: 3000, 02.2022: 4000
- Case 1: Choose slicer between 01.01.2022 to 29.01.2022 (days in Jan). Target should be fixed: 3000
- Case 2: Choose slicer between 01.01.2022 to 05.02.2022 (days in both jan and feb): Target value should be fixed: 7000 (3000+4000)
Please give me some advices, thanks a lot
Link file PBI
https://drive.google.com/file/d/1GL_yUEaU8hYnVnATnXLhrBXQJRrUQpH_/view?usp=sharing
Solved! Go to Solution.
Hi @tamerj1!
When i created relationship, i got this:
But thanks for your adivce, i got an idea and it worked. I create a month table - a table with only year and month by using dax:
Create relationship between 3 tables: date, month table, target. Change cross filter direction to both and I got what i want 😆
Again, thank you a lot! 👍
Hi @Adam_Shelton
Please refer to attached sample file for more details. First you need to create a new calculated column in the date table as follows
Then you need to edit the relationship as follows
Start of Month =
CALCULATE (
MIN ( 'Date'[Date] ),
ALLEXCEPT ( 'Date', 'Date'[CalendarYear],'Date'[months] )
)
Hi @tamerj1!
When i created relationship, i got this:
But thanks for your adivce, i got an idea and it worked. I create a month table - a table with only year and month by using dax:
Create relationship between 3 tables: date, month table, target. Change cross filter direction to both and I got what i want 😆
Again, thank you a lot! 👍
Happy for you despite that it deosn't make alot of sense. Most importantly, it works good for you.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 15 | |
| 13 | |
| 13 |