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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi,
Create a Calendar Table with a relationship (Many to One and Single) from the Created_At date column to the Date column of the Calendar Table. Write this measure
total_qty = CALCULATE(SUM(Stock[Items.quantity]),datesbetween(calendar[Date],DATE(2023, 12, 12),DATE(2023, 12, 12)),stock[user_id] IN {"LTTN01001","LTTN01002", "LTTN01003","LTTN01005","LTTN01006"})
Hope this helps.
sir. slight modification to my question above.
i have two tables "Sale_items", "stocks"
columns "term_id_new", "Sale Date" is from table "Sale_items"
column "items.quantity" is from table "stocks".
now i want to calculate the sum of "items.quantity" for each "term_id_new" for each "Sale Date".
please help me. am so new to this tool. please provide the query formula in detail.
maybe you can try this
Proud to be a Super User!
Bro. slight modification to my question above.
i have two tables "Sale_items", "stocks"
columns "term_id_new", "Sale Date" is from table "Sale_items"
column "items.quantity" is from table "stocks".
now i want to calculate the sum of "items.quantity" for each "term_id_new" for each "Sale Date".
please help me. am so new to this tool. please provide the query formula in detail.
In order to provide the proper solution. pls provide some sample data of two tables and the expected output
Proud to be a Super User!
User | Count |
---|---|
97 | |
77 | |
76 | |
47 | |
26 |