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.
Hello! Need help please! I need to calculate the profitability of a business per month, I have the column sales and quantities sold, and the column cost U. All purchases and sales have month and year and are related to a calendar table.
Not for all items sold in a month I have "cost U" in that same month, some items were purchased in past months. I would need you to use the last cost U for that product in that case. (respecting the current filter, i.e. not the last cost of the entire table, looking for the cost in the months prior to the filtered month)
I made a "last purchase" cost, but I can't get it to work with the visual filter of the page.
When I want to see January sales, I would need to have costs U of January or the last one before that month...
Thanks a lot!!
HI @Natalia0710- ,
Power bi current does not support create dynamic calculate column/table based on filter selections.They work on different levels, and you can't apply the interaction from the child level to affect their parent levels.
For this scenario, I think you need to create measure formula instead.
Notice: the data level of power bi(from parent to child level)
Database(external) -> query table(query, custom function, query parameters) -> data model table(table, calculate column/table) -> data view with virtual tables(measure, visual, filter, slicer)
Regards,
Xiaoxin Sheng
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 |
---|---|
110 | |
99 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |