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
Anonymous
Not applicable

Date Column not populating in Report

Hello friends I am new to power bi , 

I am not able to understand how to choose and apply funcation/Dax command on Reports. Is there any limitation that certain DAX funcation only work while creating into Tabular model area and they will not work or populate in while creating on Report level. 

For eg.  I have  X1Date (date column ) in my tab. model and I want to use this column to find out Date difference between this X1date and Getdate. But while creating new measure its showing "Can not find X1date" or something. 

While adding MAX(X1Date) into it it shows me. Not sure how to calculate it.

This is I want to achive  ---->>   Meaure = DATEDIFF(X1Date, Today(), YEAR) 

 

Please help 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Nothing .. as of now thanks for your effort.

View solution in original post

6 REPLIES 6
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

The measure formula is calculated based on row contents and it means the aggregated records based on the visual category group. So its result can be dynamic changes when you use the aggregate function on it.

For this scenario, it means you need to do some extra processing to extract the specific value.
For example: you can try to use aggregate functions or selectedvalue functions to extract the 'current' value based on its filters.

Using the SELECTEDVALUE function in DAX 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

Yes I can try but this SELECTEDVALUE  funcation also not appearing/populating. 

 

 

 

Parihar26_0-1600680305401.png

 

DataInsights
Super User
Super User

@Anonymous,

 

Measures require an aggregate function, since they aggregate values from multiple rows in a table. Try the measure below in a table visual.

 

Meaure = DATEDIFF ( MAX ( X1Date ), TODAY (), YEAR )

 

If you prefer to have a calculated column in the table (the tabular model area), you don't need the MAX function.

 

The link below should help:

 

https://www.sqlbi.com/articles/calculated-columns-and-measures-in-dax/ 





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

Proud to be a Super User!




Anonymous
Not applicable

Yes you are right but I have to create measure in Report area itself. 

 

 

Hi @Anonymous,

Anything else you confused about these? If that is a case, you can feel free to post here with detailed descriptions.
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

Nothing .. as of now thanks for your effort.

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.