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
Hello!
I'm struggling with DAX code.
To describe the problem, look at the picture below. I have many rows with the data, separated by invoice month, country, section, supplier type. In next four rows are some values, let's focus as example on Sum_selling_price
I want to create calculated column, which always take value for first available month(here it will be April) and assign in all 12 rows.
My current code, where I failed looks as provided
I faced "circular dependency".
I would be really grateful for any help.
Solved! Go to Solution.
Hi, @PawelTr
You can try the following methods.
Selling price =
Var _firstdate=CALCULATE(MIN('Table'[INVOICE_MONTH_END]),ALL('Table'))
Return
CALCULATE(SUM('Table'[Sum_selling_price]),FILTER('Table',[INVOICE_MONTH_END]=_firstdate))
Is this the result you expect? If not, please provide more information.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello v-zhangti,
Sorry for beeing silent for a long time. I wasn't able to log in recently.
Your advice helped me solved this problem.
A veeery big thank you for this support! 😊
Hi, @PawelTr
You can try the following methods.
Selling price =
Var _firstdate=CALCULATE(MIN('Table'[INVOICE_MONTH_END]),ALL('Table'))
Return
CALCULATE(SUM('Table'[Sum_selling_price]),FILTER('Table',[INVOICE_MONTH_END]=_firstdate))
Is this the result you expect? If not, please provide more information.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 19 | |
| 17 | |
| 11 |