cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Helper I

## How to ignore dd/mm/yyyy but not mm/yyyy?

I have a table with one value for the entire month. This table has an active relationship to the dd/mm/yyyy calendar. I'm trying to create a calculated column within a measure in which this month's value becomes the daily value for each date of that month.

Any ideas?

 Date Value Expected value 01/01/2023 100 100 02/01/2023 100 03/01/2023 100 04/01/2023 100 05/01/2023 100
1 ACCEPTED SOLUTION
Helper I

The solution was simple.

1) took off the relationship

2)

var month_b = STARTOFMONTH('Calendar'[Date])
return CALCULATE(AVERAGE(Data[Value]),Data[month] = month_b)
2 REPLIES 2
Helper I

The solution was simple.

1) took off the relationship

2)

var month_b = STARTOFMONTH('Calendar'[Date])
return CALCULATE(AVERAGE(Data[Value]),Data[month] = month_b)
Super User

@janislv , a Few ways, The table have a month  or assume only the start date month, Join it with the date table on the month start date

Month Start = eomonth([Date],-1)+1 //A new column in date table, join this

Another way

Power BI Distributing/Allocating the Monthly Target(Convert to Daily Target): Measure ( Daily/MTD): https://community.powerbi.com/t5/Community-Blog/Power-BI-Distributing-Allocating-the-Monthly-Target-...

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - August 2024

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

#### Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

#### Fabric Community Update - August 2024

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

Top Solution Authors
Top Kudoed Authors