Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
Using PowerBI I having a big trouble with a task that seems simple: I need giving accross time (ORDER[DATE]), count how many products I have inserted in my database, even with no sales. I have a column for that: PRODUCTS[DT_INSERT]. Tried some, this give a correct value in the first YEAR, and wrong in th others:
CALCULATE(
COUNT(PRODUCTS[PROD_ID]);
CROSSFILTER(PRODUCTS[PROD_ID];ORDER_ITENS[PROD_ID];None);
FILTER(VALUES(PRODUCTS[DT_INSERT]);DATEVALUE(PRODUCTS[DT_INSERT])<=DATEVALUE(ENDOFMONTH(LASTDATE(ORDERS[ORDER_DATE]))))
)
Using DATEVALUE or not have no effect.
The total should give 2169 in 2015.
Please help
Solved! Go to Solution.
I succesfully counted. Importing the table PRODUCTS twice (without any relationships)...
Tried crossfilter all relations on PRODUCTS no luck.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
94 | |
75 | |
63 | |
62 |
User | Count |
---|---|
137 | |
105 | |
104 | |
80 | |
63 |