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
alxmti
Frequent Visitor

Date as KPI

Hello,

 

I am trying to put the date as a KPI. Basically if a filter is on a date, then the date should be shown as a big text in the dashboard header. Unfortunately, it shows a #0.00 whenever i filter on the date.

 

This is the formula:

 

Date filter = IF (
    HASONEVALUE ( DimDate[Date] );
     VALUES(DimDate[Date]) ;
    "YTD Cumulated"
)

 

Cheers

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @alxmti,

 

The question you are getting is that you have two format in your final result so the KPI only returns one type in this case Number you need to change your formula to something like this:

 

Date filter =
IF (
    HASONEVALUE ( DimDate[DAte] );
    FORMAT ( VALUES ( DimDate[DAte] ); "dd-mm-yyyy" );
    "YTD Cumulated"
)

Format the date part as best fits your needs

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @alxmti,

 

The question you are getting is that you have two format in your final result so the KPI only returns one type in this case Number you need to change your formula to something like this:

 

Date filter =
IF (
    HASONEVALUE ( DimDate[DAte] );
    FORMAT ( VALUES ( DimDate[DAte] ); "dd-mm-yyyy" );
    "YTD Cumulated"
)

Format the date part as best fits your needs

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



alxmti
Frequent Visitor

thanks! something as easy as FORMAT 🙂

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.