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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Arvind123
Frequent Visitor

Power BI matrix Comparison Between 1st 12th Date vs Rest of Day in a month

Hi Team,

Can we accomplish Avg Profit of 1st to 12th date of current month Vs rest of the date comparison in Power Bi Matrix?
I want View like this is power bi matrix :

Campaign NameAverage Profit 1st 12 April13th April14th April15th April16th April17th April18th April19th April20th April
Ab506751568552708796
Cd606361889055895552
Ef506266525283768359


Here I have took till 20th April it may have 30th April or till 13th May data also but Avg profit of 1st to 12th April is fixed.

Thanks,

Arvind

1 ACCEPTED SOLUTION

Hi @Arvind123  

 

Please follow these steps:

1.Create new tables with the information that you already have.

vyuanchamsft_0-1715678573081.png

 

 

 

2.Select new column and use below DAX function.

 

Column = IF('Table'[Date]<=DATE(2024,4,12) && 'Table'[Date]>=DATE(2024,4,1),"Average Profit 1st 12th April", 'Table'[Date].[Month] &'Table'[Date].[Day]& "th ")

 

3.Final output.

vyuanchamsft_1-1715678589852.png

 

vyuanchamsft_1-1715678448160.png

vyuanchamsft_0-1715678420723.png

 

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Kuhn Chang

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

 

 

View solution in original post

1 REPLY 1

Hi @Arvind123  

 

Please follow these steps:

1.Create new tables with the information that you already have.

vyuanchamsft_0-1715678573081.png

 

 

 

2.Select new column and use below DAX function.

 

Column = IF('Table'[Date]<=DATE(2024,4,12) && 'Table'[Date]>=DATE(2024,4,1),"Average Profit 1st 12th April", 'Table'[Date].[Month] &'Table'[Date].[Day]& "th ")

 

3.Final output.

vyuanchamsft_1-1715678589852.png

 

vyuanchamsft_1-1715678448160.png

vyuanchamsft_0-1715678420723.png

 

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Kuhn Chang

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

 

 

Helpful resources

Announcements
Europe Fabric Conference

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.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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