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 everyone,
So I have to build a table with demand, production, initial stock and final stock like this:
And i have a what-if parameter that is able to change the value of production on the first date.
The source table is (if necessary, its structure may change):
With all of this, how can i build a table like that, where in addition the production value for the first date may change dynamically?
Regards,
Hi @Anonymous,
Current power bi does not support creating dynamic calculate column/table based on filter/slicer. You can write a measure formula to interact with filters.
Notice: the data level of power bi.
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
@Anonymous,
Create measure for Production
Production =
VAR firstDate = CALCULATE(MIN(<Date Column>), ALL(<Date Column>)
VAR currentDate = MAX(<Date Column>)
VAR ProdValue = CALCULATE(SUM(Table{Value]), Table[Detail]="Production")
VAR dynValue = <What-if Measure>
RETURN
IF(currentDate = firstDate, ProdValue + dynValue, ProdValue )
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 |
---|---|
111 | |
97 | |
80 | |
69 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |