Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
Below is an example of data I have:
| Date | Indicator | Level |
| 2018-12-03 | ABC | 16.39 |
| 2018-11-30 | ABC | 18.07 |
| 2018-11-29 | ABC | 18.79 |
| 2018-11-28 | ABC | 18.49 |
| 2018-11-27 | ABC | 19.02 |
| 2018-11-26 | ABC | 18.9 |
| 2018-11-23 | ABC | 21.52 |
What I am trying to accomplish is the following:
I tried to creating a column in the data table but got the following messsage: Expressiosn that yield variant data-tupe cannot be used to define calculated columns.
My question is: is that the best way to do it or are there better alternatives
Thanks,
AR
Solved! Go to Solution.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsYou should be able to use a calculated measure to get what you are looking for. There is a bit of work you need to do first though, like including your own Calendar table, linked to your data table. This is pretty much a prerequisite if you want to leverage time based statistical functions over a data set.
The best resource I can put you on is https://www.daxpatterns.com/statistical-patterns/ They have a complete set of statistical measure, and include downlaodable Excel workbooks with working examples.
If you are trying to get a Percentile, as opposed to a percentage, there are PERCENTILE functions in DAX. Details on the functions can be found here: https://docs.microsoft.com/en-us/dax/percentile-exc-function-dax
And a simple example of how to use them can be found here: https://dash-intel.com/powerbi/statistical_functions_percentile.php
Warm regards,
Clayton
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsShare feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 53 | |
| 47 | |
| 30 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 88 | |
| 73 | |
| 38 | |
| 26 | |
| 25 |