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
Syndicate_Admin
Administrator
Administrator

Calculation of days according to period

Esteemed buen day

I need help to determine, from a period, how many days correspond to each month
That is: if I have a period from May 1, 2023 to October 12, 2023

I want to filter by May, show me 31 days

or if I want to see August, September and October show me

AugustSeptemberOctober
Days313012

Of course, thank you very much

Best regards

Mathias

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

I manage to do it but when the calendar has the specific range.
Can you help me with an example of these 4 lines?

DOCDateFromDateto
106-07-202305-09-2023
206-07-202305-08-2023
306-07-202305-10-2023
401-01-202331-12-2023

Thanks a lot

Syndicate_Admin
Administrator
Administrator

Thank you for your prompt reply...

I'm starting with Power Bi and it's hard for me to adapt to the logic.

Do you think it possible if I give a value to each line, calculate the value corresponding to each month?

I come from excel and I have serious problems to change the logic of the processes.

Of course, thank you very much

Yes, Just creating the measure or using aggregate in values field will show the value corresponding to each month in the visual.

 

NaveenGandhi_0-1685384612432.png

If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

NaveenGandhi
Super User
Super User

Hello @Syndicate_Admin 

You just create a count of date column and use matrix visual to visualize as you have stated.

NaveenGandhi_0-1685377394680.png

 

Let me know if you need any help or question.

 

If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

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.