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

If with dates from excel in Power BI

Hello All.

We are creating a report and again need your help. Don't know how to convert formula from excel to power bi.

in excel it should look like IF YTD = month 6 , YTD (6), YTD – YTD

Only this idea appeared for POwer BI, but it, of course, doesn't work:

IF (lastday( Dates[Dates]) < MONTS () , CALCULATE ( SUM() – SUM(previous month )

 

Thanks a lot for your help 🙂

1 REPLY 1
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

Could you please share some sample data and the expected output? It is helpful for us to understand your requirement and solve it as soon as possible.

Please see this post regarding How to Get Your Question Answered Quickly: 

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Moreover, you could reference this thread firstly.

https://community.powerbi.com/t5/Desktop/YTD-of-years-until-today/td-p/442182

 

Best Regards,

Xue Ding

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

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.