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

To show the data for current day

Hello,

 

I want to show the present day data(Today's data). So I created a calculated column as below and given a visual level filter as AsofToday is 0.

 

AsofToday = DATEDIFF(DATEVALUE(FactTable[Date]),DATEVALUE(TODAY()),DAY)

 

I have implemented this and published it to powerbi.com

As we are collecting data everyday, it needs to be refreshed everyday.  But the problem is when we try to refresh in powerbi.com the data will be showing as BLANK and when we refresh in power bi desktop it shows proper data.

 

Can anyone please help me to resolve this?

 

Thanks in advance.

 

 

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

You could try modifying your formula a bit such as:

 

AsofToday = IF(DATEDIFF(DATEVALUE(FactTable[Date]),DATEVALUE(TODAY()),DAY)=0,"today","not today")

And then just change your filter criteria, might clear up the zero vs. blank problem.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi,

 

I have a Virtual Machine environment in Pacific time zone.

In the morning when I access my VM(I am located in India), and if I refresh my power bi reports I get blank values for data for As of Today. I created measure for todays date(Today = TODAY()) and displayed using score card visualization. Its showing IST time even though we are accessing powerbi.com in VM.

Can I change the time zone in power.com?

 

 

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.