Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hit "Reply" and let us know what you think of visual calculations! To learn more about this feature, please visit the blog post or our documentation.
Here are some areas that we'd like to hear about in particular:
Thanks and we look forward to hearing your feedback!
hi @ToddChitt, thanks for raising this. Currently you cannot influence the sorting behavior of the runningsum calculation or the visual matrix (what you call the data table), this is something we're working through.
You could also write a running sum using a window function (WINDOW) and influence the sort order using the ORDERBY() parameter function.
Visual calcs could be used to offer an extension to the "Show Value As" option.
Alongside "Percent of grand total", it could offer "Percent of..." and allow any other numeric field in the row to be chosen.
I'm currently preparing a visual which is a set of percentages vs a baseline value. Previously, this required a lot of measures. Now, it can use visual calcs instead. This works, but the menu option would cut the clicks required to complete the task.
hi @kleigh thanks for the feedback! We are working on integrating visual calculations into this menu, but right now I am thinking about it as extending the options available with templates such as running sum / moving average. Since you open the "show value as" menu from a numerical value, the template would then be applied to that numerical value. If you open 'show value as' on a field named 'Sales' and chose 'running sum' we would add a visual calculation that is the running sum of Sales.
However, you seem to imply a different viewpoint on this, which is very interesting to me. Can you elaborate about this part of your message please: "Alongside "Percent of grand total", it could offer "Percent of..." and allow any other numeric field in the row to be chosen.". An example would be very helpful. Thanks in advance for your consideration.
I don't think this conflicts with the idea of applying templates. It's just a template that would be useful for the cases where I'm already applying visual calcs.
We have columns that duplicates a boolean, except showing 1 for true and 0 for false. This would by itself show a count where a certain monitoring code has been set. For this visual, instead of a raw total, they are shown as a % of a baseline field. This is effectively the overall total with no filter applied, but since it's just another column it's not seen as being the total.
The visual calc is for example:
And our result:
I've unhidden the count column here as an example, normally this visual hides them.
There are a few other visuals I have where there are two measures, the counting measure, then the same thing which is a percent of another measure. My general preference is to replace measures that are simple calculations (like a division) and used for one visual with visual calcs.
@VijayChinna , @swixglider @Frankie_Vannini @gregst
and for all people that were asking on a way to format values in visual calculations, in the August Update it was added as an option that is visual level formatting
you can check these resources to know more about it and how to perform it
https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-custom-format-strings
https://youtu.be/a6lI_B58wqQ?si=q8rdPO8xHI6gtlel
https://youtu.be/w1a55ujmEm4?si=xSJPaiYmQfuZQsD5
Proud to be a Super User! | |
yep, and more is coming 🙂
I'm trying to use it with a "Field Paramater" but it doesn't seem to work.
No options for formatting, ex: if we divide 2 measures for percentages to show on line chart as percentange (64.6%) or on tooltip is not possible
thanks for trying this out! Field parameters are listed as a limitation in our docs so they don't work yet with visual calculations.
Thanks! That's a great new feature.
I'm trying to use it with a "Field Paramater" but it doesn't seem to work.
The option "New calculation" dissapear as soon as you add a field parameter to the table. Will it work in the near future?
thanks for trying this out! Field parameters are listed as a limitation in our docs so they don't work yet with visual calculations.
Hello,
I've got an issue.
When I'm using fx to add the RUNNINGSUM I got the message below.
It referes to a column with the weeks.
Whatever the measures I got this error
My table is quite simple
first of all, thank you for trying out visual calculations and I am sorry you weren't successful the first time around. I believe I understand what is going on here: the [Field] in the template is the numerical field you want to sum, so that's Snapshot in your case. RUNNINGSUM([Snapshot]) should work. Please try it and let me know if it works as expected. thanks again!
Hello
The error message is coming at the beginning, meaning when I click on "New Calculation" the error message is popping up.
The table is quite simple, I have the week and for this example I only put the measure Snapshot = 1
with a format as Whole number.
Even if I continue and create Calculation = RUNNINGSUM([Snapshot]) the screen stay with the error message.
The calendar I use to get the Week is linked with other table in my model. Could be the problem ?
I did several try and it seems the issue is coming only if I use the table "Calendar" 😞
Hi there
I've got a small vertical aligment issue the minute I use a unichar icon to display a negative or positive icon related to the value, waiting for conditional formatting option. This happens only using DIN Font bigger than 18 points
In essence I use this code for the visual calculation:
the result is this one:
so using font DIN 14 on the left no significant vertical misalignement, while using DIN 34 I have a vertical misalignement. No issues with other fonts
By the way, any suggestion to change numbers in green or red using DAX and/or HTML?
Thanks
F
Hello again,
I solved my problem. The naming of the column seems weird for the New Calculation.
If I rename my column Calendar[ST Week] with ST Week all is working well.
Is it possible the square bracket [ ] create the problem ?
it's likely the 'Calendar' part that got confused as a table reference. In general I'd recommend not naming columns like that as Power BI is prone to think A[B] is a reference to a column B on a table A.
When I add Visual Calculation, export data option is gone so it looks more for adhoc reports but not reports where users are looking all features.
hello - export is not supported yet and is listed in our documentation as a limitation. We will enable export eventually.
Need a lot that kind of export !! 🤩
It's really amazing, thank you very much!
I was wondering if there is any code we can write for new calculations or something similar to change colors inside a single visual or customize the visual according to our needs. Some visuals have very limited options?
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
92 | |
87 | |
84 | |
65 | |
49 |
User | Count |
---|---|
140 | |
114 | |
110 | |
59 | |
59 |