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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
yj1111
Frequent Visitor

Create a new column depends on a dynamic date

Hello, I have some projects in my platform. Every project should publish a highlight report on a monthly basis. I want to check which project delivers the updated highlight report which does not according to a dynamic date. Thus, I create a date table which includes the date from 2022-2025 and create a slicer based on this date table. I also create a measure to count the numbers of projects which update the highlight report according to the reference date I select in the slicer. However, I want to create another slicer to show which project has the status "Hlr updated", which project has the status "Hlr not updated". But I am not succeeded in doing it. I try to create a new column by using the dax function: IF(report date>Values('Date'[Date]),"Hlr updated", "Hlr not updated"), but it does not work. Could someone help me with topic? Thanks. 

1 ACCEPTED SOLUTION

@yj1111 In general, to use a measure in that way, you need to use the Disconnected Table Trick as this article demonstrates: https://community.powerbi.com/t5/Community-Blog/Solving-Attendance-with-the-Disconnected-Table-Trick...


@ 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!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

@yj1111 Columns are not dynamic based on user input, they are calculated at the time of data refresh. You would need to use a measure.


@ 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!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

But if I use a measure, I am not able to use the slicer to show which projects updated the highlight reports, which not. Do you have an idea how I can show projects with different update status?

@yj1111 In general, to use a measure in that way, you need to use the Disconnected Table Trick as this article demonstrates: https://community.powerbi.com/t5/Community-Blog/Solving-Attendance-with-the-Disconnected-Table-Trick...


@ 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!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.