This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Is there a way to create a calculated column when creating a dataset.
Folliwing the API reference: https://msdn.microsoft.com/en-us/library/mt742155.aspx
It seems we can create an Expression for a Measure, but maybe not for a Column? I would like to add an If Statement on a Measure as a Custom Column. This is easily accomplished in Desktop, but not sure if the API supports this or not.
Solved! Go to Solution.
@rayishome wrote:
Is there a way to create a calculated column when creating a dataset.
Folliwing the API reference: https://msdn.microsoft.com/en-us/library/mt742155.aspx
It seems we can create an Expression for a Measure, but maybe not for a Column? I would like to add an If Statement on a Measure as a Custom Column. This is easily accomplished in Desktop, but not sure if the API supports this or not.
AFAIK, custom column is not supported. What is your scenario that a custom column is mandatory? Maybe you can just create a normal column for the dataset and implement the if statement when Adding Rows.
@rayishome wrote:
Is there a way to create a calculated column when creating a dataset.
Folliwing the API reference: https://msdn.microsoft.com/en-us/library/mt742155.aspx
It seems we can create an Expression for a Measure, but maybe not for a Column? I would like to add an If Statement on a Measure as a Custom Column. This is easily accomplished in Desktop, but not sure if the API supports this or not.
AFAIK, custom column is not supported. What is your scenario that a custom column is mandatory? Maybe you can just create a normal column for the dataset and implement the if statement when Adding Rows.
One method to display the last inserted record would be to use a "Top N" filter. If you have a date/time column (or another id field) that is included in the data you would just set it up in the following manner:
Then whenever you push new data the filter will ensure only the last record gets included.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |