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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Tricky Concatenate DAX Formula

Hi Experts

 

I have the following dax formula which works fine to a certain limited. i want to change it so if the YTD,MTD and QTD is selected from the date calculation filter and when NO month is selected then the title should read "total revenue summary".

 

i cannot see my error...

 

Title - 1A Product Details = CONCATENATEX( VALUES( 'Date Calculations'[Date Calculation]), 'Date Calculations'[Date Calculation],", ") & " "  
     & IF(HASONEVALUE(DateFilter[Month Short Name]),"",CONCATENATEX (
            VALUES( DateFilter[Month Short Name]),
           DateFilter[Month Short Name],
                ", ")
            &" " & CONCATENATEX( VALUES( DateFilter[Year Nbr]),
                DateFilter[Year Nbr],
            ",")
            & "  Total revenue summary")
1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

The formula seems fine but the result may not be the desired one. Can you share a sample, please? Please mask sensitive parts first.

Do you really have a column of "YTD, MTD and QTD"?

 

Best Regards,
Dale

Community Support Team _ Dale
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

3 REPLIES 3
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

The formula seems fine but the result may not be the desired one. Can you share a sample, please? Please mask sensitive parts first.

Do you really have a column of "YTD, MTD and QTD"?

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
MattAllington
Community Champion
Community Champion

It is difficult to give you an answer.  You would be well advised to use the Variables Syntax and work your way through the problem one step at a time.  Have a look at the video I did with Avi here.  Watch the video to see how I use VAR to solve complex nested DAX formulas, then apply the process to your formula.

 

https://www.youtube.com/watch?v=eOJkOWMYSkk 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.
Anonymous
Not applicable

Thanks Matt....

 

i give it a try

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors