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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
ryand009
Regular Visitor

Dax Outer Join

Hello

 

I’m building a PBI report to look at SSRS report usage. I need a measure that returns the usage of reports created in the last six months. Two tables used in the measure

 

Catalog table --> Contains report details, attributes like  ReportID, name, createdDate etc.

ExecutionLogStorage table --> Contains report usage details, attributes like ReportID, UserId, TimeStart etc. 

 

Measure currently  is …

EVALUATE
ROW (
    "b",
        CALCULATE (
            COUNTROWS ( ExecutionLogStorage ),
            'Catalog'[CreationDate]
                >= DATE ( YEAR ( NOW () ), MONTH ( NOW () ) - 6, DAY ( NOW () ) )
        )
)

 

This only returns reports that have had usage. I need it to return all reports in the last 6 months, even if the usage is 0, I guess I need the DAX equivalent of a left outer join.

 

Any suggestion much appreciated.

Thaks in advance.

Roy

 

3 REPLIES 3
v-rzhou-msft
Community Support
Community Support

Hi @ryand009 ,

 

Could you tell me if your issue has been solved? If it is, kindly Accept the helpful reply as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your issue or share me with your pbix file without sensitive data.


Best Regards,

Rico Zhou

Greg

 

Thanks for the quick reply. 

 

I added the +0 to the measure, but it returns all reports and seems to be overwriting the filter ???

 

 

Greg_Deckler
Super User
Super User

@ryand009 Maybe: 

EVALUATE
ROW (
    "b",
        CALCULATE (
            COUNTROWS ( ExecutionLogStorage ),
            'Catalog'[CreationDate]
                >= DATE ( YEAR ( NOW () ), MONTH ( NOW () ) - 6, DAY ( NOW () ) )
        ) + 0
)


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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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