This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher 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êsCheck 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 |
|---|---|
| 25 | |
| 24 | |
| 22 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 44 | |
| 42 | |
| 42 | |
| 21 | |
| 21 |