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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
mwolfc
Frequent Visitor

Convert a DAX measure

Hello, well, after 4 hours of research and Chat GPT, it's time to ask my Forum friends!  

Question:  I have a DAX measure which I'm using in a card visual, which gives a count of records, and it works great.  

<CountWalksInPreviousWeek =
CALCULATE(
    COUNTROWS('Booked Sales'),
    FILTER(
        'Booked Sales',
        'Booked Sales'[QW Date] >= (TODAY() - WEEKDAY(TODAY(), 2) - 6) && 'Booked Sales'[QW Date] <= (TODAY() - WEEKDAY(TODAY(), 2))
    )
)>
It counts the number of rows containing QW Dates occuring over the previous Mon-Sun period.  
Now, for a drill-own visual I want to modify this measure into a new measure that will list out these filtered dates, and also list 2 other fields with values from those rows.  The new field names are "Job Name" and "Customer".  Everything I have tried today has failed me.  Thanks so much!
1 ACCEPTED SOLUTION
some_bih
Super User
Super User

Hi @mwolfc you already have rows, if your measure works as expected 🙂

In your measure, filter part will give your "rows"

Put this into calculated table and you will have it.

 

FILTER(
'Booked Sales',
'Booked Sales'[QW Date] >= (TODAY() - WEEKDAY(TODAY(), 2) - 6) && 'Booked Sales'[QW Date] <= (TODAY() - WEEKDAY(TODAY(), 2))
)

 

Did I answer your question? Kudos appreciated / accept solution!





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

Proud to be a Super User!






View solution in original post

2 REPLIES 2
some_bih
Super User
Super User

Hi @mwolfc you already have rows, if your measure works as expected 🙂

In your measure, filter part will give your "rows"

Put this into calculated table and you will have it.

 

FILTER(
'Booked Sales',
'Booked Sales'[QW Date] >= (TODAY() - WEEKDAY(TODAY(), 2) - 6) && 'Booked Sales'[QW Date] <= (TODAY() - WEEKDAY(TODAY(), 2))
)

 

Did I answer your question? Kudos appreciated / accept solution!





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

Proud to be a Super User!






Thank you so much for the suggestion!  I simply dragged that measure into the drill-down report and it worked perfectly!  

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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