cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
LAPORTES Member
Member

Not Selected Value Table

Hi,

 

here is my problem :

 

let's say i have :

    - 1 Dimension table with 10 users --> DIM_USERS

    - 1 Dimension table with 50 reports --> DIM_REPORTS

    - 1 Fact table with logs --> TAB_LOGS

 

If i select one report, let's say "Report A", i can easily display users that did access the report.

 

But if i wanna display the lads who did NOT...

 

I would like those lazy users to be listed in a dynamic table.

That means that the solution consisting of a CONCATENATEX measure with the list "lazyguy1, lazyguy2, ..." isn't ok.

I really need to have those guys listed in a table.

 

I tried to play with the EXCEPT function. I guess this is the good path to the solution. But i can't figure out how to set my "right" table.

 

EXCEPT(Table_left;Table_right)

--> EXCEPT(SELECTCOLUMNS(DIM_USERS;"LazyLads";DIMUSERS[UserID]); ??? )

 

Thanks for you help

 

A lazy guy

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
lc_finance Member
Member

Re: Not Selected Value Table

Hi @LAPORTES ,

 

 

Here is the calculated measure you can create for that:

Lazy User = 
var selectedReport = SELECTEDVALUE(DIM_REPORTS[Reports])
VAR selectedUser = SELECTEDVALUE(DIM_USERS[Users])

VAR selectedUserUseSelectedReport = IF(
    COUNT('TAB_LOGS'[Date])>=1
    ,TRUE,FALSE)

RETURN IF (selectedUserUseSelectedReport, BLANK(), "Lazy")

Here is a screenshot of what it will look like:

Lazy User.png

 

And finally, here you can download the Power BI template.

 

Let me know if this works for you,

 

LC

Interested in Power BI templates? Check out my blog at www.finance-bi.com

View solution in original post

2 REPLIES 2
lc_finance Member
Member

Re: Not Selected Value Table

Hi @LAPORTES ,

 

 

Here is the calculated measure you can create for that:

Lazy User = 
var selectedReport = SELECTEDVALUE(DIM_REPORTS[Reports])
VAR selectedUser = SELECTEDVALUE(DIM_USERS[Users])

VAR selectedUserUseSelectedReport = IF(
    COUNT('TAB_LOGS'[Date])>=1
    ,TRUE,FALSE)

RETURN IF (selectedUserUseSelectedReport, BLANK(), "Lazy")

Here is a screenshot of what it will look like:

Lazy User.png

 

And finally, here you can download the Power BI template.

 

Let me know if this works for you,

 

LC

Interested in Power BI templates? Check out my blog at www.finance-bi.com

View solution in original post

LAPORTES Member
Member

Re: Not Selected Value Table

well done

 

easier than i thought

 

thank you @lc_finance !!!

Helpful resources

Announcements
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 141 members 1,617 guests
Please welcome our newest community members: