Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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êsIf you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |