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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
I have create a Data source from an API , as follow:-
the Data i am showing is as follow:-
with these fields; Name, LogStart, LogEnd, Type & TotalTime... now how i can show the Sum for the TotalTime field for each Name? also this should work for filtered data? Can anyone advice?
Thanks
Solved! Go to Solution.
Start with converting your TotalTime field to Decimal number data type with Summarization of Sum, then you can add a Matrix visual with the Name field in the Rows and the TotalTime in the Values.
I created a temp Excel workbook with those same columns that you have and imported it into Power BI using Power Query. By default, Power Query has imported all my columns as "Any" data type. Which mean it can contain a mix of letters and numbers.
What you want to do is select the TotalTime column and then go to the Data Type menu at the top and select one of the Decimal number options depending on your needs
Here's what Decimal Number looks like:
And here's what Fixed decimal number looks like:
With Fixed decimal number, you can set it to have an exact number of decimal, so if your data has more digits than what you've set the decimal numbers to be, it will simply be rounded to that number of decimal places.
Of course, you can also do this in Power BI Desktop.
Here you can see my table looks the same as you.
If I then select the TotalTime field in the Data pane, Power BI will show the Column tools for that field where you can see that the Data Type is set to Text.
Just change the Data type to Decimal number or Fixed decimal number. You will get a warning like below. Just click Yes.
And your data table should now look like this:
There are pros and cons to making this change in Power Query vs. in the Power BI Desktop model view. I've listed them below.
For most scenarios, it’s generally better to change data types in Power Query because:
However, for quick fixes or adjustments, changing data types in the model view can be more convenient and efficient.
@cath1ynnthanks fo the reply, i did the steps you mentioned and i convert the total time to decimal.. but how i can show the total sum for the TotalTime for each name? i can not see where are those steps in you reply. are you able to advice?
Thanks in advance for your help.
Also when i click on the TotalTime field i can not see any option to summarize based on the sum for each name??
Looks like the field you have selected in that screenshot is not a number field, hence why you only see those few aggregation options.
@cath1ynnthanks a lot for the useful reply. as i am a bit new to Power BI, can you provide some screen shots of what i need to do exactly ? Thanks
I created a temp Excel workbook with those same columns that you have and imported it into Power BI using Power Query. By default, Power Query has imported all my columns as "Any" data type. Which mean it can contain a mix of letters and numbers.
What you want to do is select the TotalTime column and then go to the Data Type menu at the top and select one of the Decimal number options depending on your needs
Here's what Decimal Number looks like:
And here's what Fixed decimal number looks like:
With Fixed decimal number, you can set it to have an exact number of decimal, so if your data has more digits than what you've set the decimal numbers to be, it will simply be rounded to that number of decimal places.
Of course, you can also do this in Power BI Desktop.
Here you can see my table looks the same as you.
If I then select the TotalTime field in the Data pane, Power BI will show the Column tools for that field where you can see that the Data Type is set to Text.
Just change the Data type to Decimal number or Fixed decimal number. You will get a warning like below. Just click Yes.
And your data table should now look like this:
There are pros and cons to making this change in Power Query vs. in the Power BI Desktop model view. I've listed them below.
For most scenarios, it’s generally better to change data types in Power Query because:
However, for quick fixes or adjustments, changing data types in the model view can be more convenient and efficient.
Start with converting your TotalTime field to Decimal number data type with Summarization of Sum, then you can add a Matrix visual with the Name field in the Rows and the TotalTime in the Values.