Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 )
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
70 | |
68 | |
43 | |
34 | |
26 |
User | Count |
---|---|
88 | |
52 | |
45 | |
39 | |
38 |