Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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êsAdvance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.