Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
DimaMD
Solution Sage
Solution Sage

Dynamics of time of receipts in the context of days of the week

Hello Community!
I have a table of receipts with the following data
- date
- Organisation ID
- #Documents
- ID.Product
- Amount
- Time.Coming
My task was to deduce the dynamics of parishes
Dividing the Time.Coming column by Hours and Minutes and combining them with the COMBINEVALUES function, I got the desired result
Screenshot_10.jpg
Now I want to do Measure

VAR _h = 
MINX(
        ADDCOLUMNS(
            'Table.Coming',
             "Hour_new",
                 FORMAT('Table.Coming'[Time.Coming], "HH")),
   [Hour_new])
VAR _m =
    MINX(
        ADDCOLUMNS(
            'Table.Coming',
             "min",
                 FORMAT('Table.Coming'[Time.Coming], "NN")),
                 [min])
                 
Return
 COMBINEVALUES(",", _h,_m)

I write this measure but understand that it works incorrectly because it takes minimal minutes
Screenshot_11.jpg
Help me understand how to write a measure correctly
Example file


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com
4 REPLIES 4
smpa01
Super User
Super User

@DimaMD  what is the desired output?

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Hi, @smpa01 
The desired result is to show the time in this format 9.20
This will allow me to display the dynamics in the chart.
In the example, all calculations are performed through calculated columns
I tried to write a measure but the minutes are displayed incorrectly


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com
amitchandak
Super User
Super User

@DimaMD , Try like

Format(Min[Time.Coming]), "HH, MM")

Hi, @amitchandak 
Measure  not work
The measure gives the value of only the hour
Screenshot_12.jpg


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors