id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
Learn_filter_financial_functions/dax-rls-function-using-lookupvalue-parsing-but-not-working3_9_0.txt | 6. Companies
7. Labs | |
Learn_filter_financial_functions/34725231_82_0.txt | 0
Reply | |
Learn_filter_financial_functions/17407304_48_0.txt | ##
03-24-2021 01:22 AM | |
Learn_filter_financial_functions/34725231_93_0.txt | 10-29-2023 03:24 PM
Thank you. Much appreciated your help on this. | |
Learn_filter_financial_functions/17407304_59_0.txt | 1,302 Views
1 | |
Learn_filter_financial_functions/34725231_51_0.txt | Message 3 of 10
1,236 Views | |
Learn_filter_financial_functions/34725231_100_0.txt | 1,168 Views
0 | |
Learn_filter_financial_functions/34725231_63_0.txt | ##
10-16-2023 02:14 PM | |
Learn_filter_financial_functions/17407304_109_0.txt | Register Now
#### Power BI Monthly Update - April 2024 | |
Learn_filter_financial_functions/17407304_60_0.txt | Reply
WarrenStaples | |
Learn_filter_financial_functions/34725231_73_0.txt | As a test for John:
Hope that helps! | |
Learn_filter_financial_functions/17407304_8_0.txt | Reply
Topic Options | |
Learn_filter_financial_functions/17407304_26_0.txt | Blog: WhatTheFact.bi
View solution in original post | |
Learn_filter_financial_functions/dax-rls-function-using-lookupvalue-parsing-but-not-working3_25_0.txt | The Report it gives is as follows:
An error was encoutnered during the evaluation of the row level security
defined on EmployeeTable. Function 'LOOKUPVALUE' does not support values of
type Text with values of type integer. Consider using the VALUE or FORMAT
function to convert one of the values. | |
Learn_filter_financial_functions/34725231_31_0.txt | As a test for John:
Hope that helps! | |
Learn_filter_financial_functions/dax-rls-function-using-lookupvalue-parsing-but-not-working3_30_0.txt | SomekindaRazzmatazz SomekindaRazzmatazz
49 8 8 bronze badges | |
Learn_filter_financial_functions/36842730_68_0.txt | VAR AllowedAccounts =
CALCULATETABLE( | |
Learn_filter_financial_functions/dax-rls-function-using-lookupvalue-parsing-but-not-working3_29_0.txt | SomekindaRazzmatazz
asked Apr 5 at 17:00 | |
Learn_filter_financial_functions/17407304_77_0.txt | In response to selimovd
* Mark as New
* Bookmark
* Subscribe
* Mute
* * Subscribe to RSS Feed
* * Permalink
* Print
* * Report Inappropriate Content | |
Learn_filter_financial_functions/17407304_63_0.txt | 03-24-2021 04:46 AM
@selimovd Thank you. It doesn't however seem to have any effect on the data.
So with flag Y, users should see all data in Sales Table, with Flag N they
shouldn't see anything. | |
Learn_filter_financial_functions/17407304_61_0.txt | Frequent Visitor
In response to selimovd | |
Learn_filter_financial_functions/34725231_71_0.txt | Hi @IzBell
You can test using a column within your RLS table, like so: | |
Learn_filter_financial_functions/17407304_99_0.txt | In response to WarrenStaples
* Mark as New
* Bookmark
* Subscribe
* Mute
* * Subscribe to RSS Feed
* * Permalink
* Print
* * Report Inappropriate Content | |
Learn_filter_financial_functions/dax-rls-function-using-lookupvalue-parsing-but-not-working3_46_0.txt | Draft saved
Draft discarded | |
Learn_filter_financial_functions/17407304_15_0.txt | Solved! Go to Solution.
Labels: | |
Learn_filter_financial_functions/34725231_23_0.txt | * Labels:
* Need Help
Message 1 of 10 | |
Learn_filter_financial_functions/34725231_91_0.txt | Frequent Visitor
In response to hnguy71 | |
Learn_filter_financial_functions/34725231_48_0.txt | MAXX(
Filter( | |
Learn_filter_financial_functions/17407304_44_0.txt | Message 2 of 11
1,336 Views | |
Learn_filter_financial_functions/17407304_98_0.txt | selimovd
Super User | |
Learn_filter_financial_functions/dax-rls-function-using-lookupvalue-parsing-but-not-working3_5_0.txt | Sign up or log in to customize your list.
### more stack exchange communities | |
Learn_filter_financial_functions/dax-rls-function-using-lookupvalue-parsing-but-not-working3_18_0.txt | Learn more about Labs
# DAX RLS Function using LOOKUPVALUE Parsing but not working | |
Learn_filter_financial_functions/36842730_36_0.txt | YL
Solved! Go to Solution. | |
Learn_filter_financial_functions/34725231_13_0.txt | Hi everyone,
I would like to create a DAX measure under Manage Security Roles where the
manager can see both their direct and indirect reports, but not their own
records. | |
Learn_filter_financial_functions/36842730_51_0.txt | Then use this DAX as a row level security on table 3 in power BI.
Thanks! | |
Learn_filter_financial_functions/36842730_30_0.txt | If (‘Table 3’[AccountID] in _accts, TRUE())
How to write this Dax? Thanks! | |
Learn_filter_financial_functions/dax-rls-function-using-lookupvalue-parsing-but-not-working3_39_0.txt | Improve this answer
Follow | |
Learn_filter_financial_functions/34725231_119_0.txt | Featured Topics
## How to Get Your Question Answered Quickly | |
Learn_filter_financial_functions/34725231_85_0.txt | ##
10-27-2023 11:48 AM | |
Learn_filter_financial_functions/34725231_27_0.txt | In response to IzBell
* Mark as New
* Bookmark
* Subscribe
* Mute
* * Subscribe to RSS Feed
* * Permalink
* Print
* * Report Inappropriate Content | |
Learn_filter_financial_functions/36842730_74_0.txt | )
Then use this DAX as a row level security on table 3 in power BI.
| |
Learn_filter_financial_functions/36842730_59_0.txt | ylin88_waters
Helper I | |
Learn_filter_financial_functions/36842730_24_0.txt | 1002
1003 | |
Learn_filter_financial_functions/36842730_61_0.txt | 02-07-2024 07:15 AM
Samlnogic - your dax code works well, thanks!! | |
Learn_filter_financial_functions/36842730_42_0.txt | ##
02-06-2024 08:21 PM | |
Learn_filter_financial_functions/17407304_13_0.txt | Hi,
New to powerbi and I was wondering if someone could help with a DAX
expression. I have a users table with UserID, Username and a column called
FinanceAccess. The FinanceAccess column has values, Y and N. Anyone with Y can
access the report and people with N should not have access. | |
Learn_filter_financial_functions/17407304_74_0.txt | Message 6 of 11
1,271 Views | |
Learn_filter_financial_functions/17407304_81_0.txt | Reply
selimovd | |
Learn_filter_financial_functions/17407304_57_0.txt | Best regards
Denis | |
Learn_filter_financial_functions/34725231_43_0.txt | * All forum topics
* Previous Topic
* Next Topic
9 REPLIES 9 | |
Learn_filter_financial_functions/36842730_73_0.txt | 'Table 3',
'Table 3'[AccountID] IN AllowedAccounts | |
Learn_filter_financial_functions/34725231_113_0.txt | ## Helpful resources
Announcements | |
Learn_filter_financial_functions/36842730_86_0.txt | Find out what's new and trending in the Fabric Community.
Read More | |
Learn_filter_financial_functions/17407304_101_0.txt | Hey @WarrenStaples ,
no problem. I'm happy it worked eventually 🙂 | |
Learn_filter_financial_functions/Learn_filter_0_1.txt | LOOKUPVALUE (
'Currency Rate'[Average Rate],
'Currency Rate'[CurrencyKey], [CurrencyKey],
'Currency Rate'[DateKey], [OrderDateKey]
)
Both the Order Date and Currency are required to find the Average Rate for the
correct date and currency. OrderDateKey and CurrencyKey are the ke... | |
Learn_filter_financial_functions/dax-rls-function-using-lookupvalue-parsing-but-not-working3_42_0.txt | Add a comment |
## Your Answer | |
Learn_filter_financial_functions/17407304_88_0.txt | If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a
solution ✔️ and give it a thumbs up 👍 | |
Learn_filter_financial_functions/34725231_79_0.txt | 10-25-2023 05:44 PM
Hi again @hnguy71
I have another question which I am hoping you can help please:
I would like to create a DAX RLS where a manager can see their direct and
indirect reports including the vacant positions under their hierarchy, but not
their own records. | |
Learn_filter_financial_functions/Learn_filter_4_1.txt | osoft.com/fwlink/?LinkId=521839)
* [ Terms of Use ](/en-us/legal/termsofuse)
* [ Trademarks ](https://www.microsoft.com/legal/intellectualproperty/Trademarks/)
* © Microsoft 2024
| |
Learn_filter_financial_functions/17407304_113_0.txt | Featured Topics
## How to Get Your Question Answered Quickly | |
Learn_filter_financial_functions/34725231_81_0.txt | Message 8 of 10
1,123 Views | |
Learn_filter_financial_functions/dax-rls-function-using-lookupvalue-parsing-but-not-working3_40_0.txt | edited Apr 17 at 3:30
answered Apr 17 at 0:33 | |
Learn_filter_financial_functions/36842730_66_0.txt | 02-06-2024 08:21 PM
Hi @ylin88_waters
| |
Learn_filter_financial_functions/dax-rls-function-using-lookupvalue-parsing-but-not-working3_54_0.txt | By clicking “Post Your Answer”, you agree to our terms of service and
acknowledge you have read our privacy policy .
## | |
Learn_filter_financial_functions/17407304_5_0.txt | Auto-suggest helps you quickly narrow down your search results by suggesting
possible matches as you type.
Showing results for | |
Learn_filter_financial_functions/34725231_47_0.txt | PATHCONTAINS(
'Employee_List'[Employee Path], | |
Learn_filter_financial_functions/17407304_96_0.txt | Message 9 of 11
1,245 Views | |
Learn_filter_financial_functions/Learn_filter_4_0.txt | Skip to main content
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security
updates, and technical support.
[ Download Microsoft Edge ](https://go.microsoft.com/fwlink/p/?LinkID=2092881
) [ More info about Internet Explorer and Microsoft Edge
](https://learn... | |
Learn_filter_financial_functions/34725231_58_0.txt | The main benefit of using RLS roles and measures is that it provides a clearer
way to implement and manage security at a row level, making it easier to
define who can see what data based on user attributes.
If this post helps, then please consider Accepting it as the solution to help
the other members find it more qui... | |
Learn_filter_financial_functions/Learn_filter_1_1.txt | tly one corresponding outer column, its value is used.
* If there is no corresponding outer column, then:
* OFFSET will first determine all columns that have no corresponding outer column.
* For every combination of existing values for these columns in OFFSETâs parent context, OFFSET is evaluated and a r... | |
Learn_filter_financial_functions/34725231_68_0.txt | hnguy71
Memorable Member | |
Learn_filter_financial_functions/34725231_32_0.txt |
Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
View solution in original post | |
Learn_filter_financial_functions/Learn_financial_4_1.txt | * [ Previous Versions ](/en-us/previous-versions/)
* [ Blog ](https://techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog)
* [ Contribute ](/en-us/contribute/)
* [ Privacy ](https://go.microsoft.com/fwlink/?LinkId=521839)
* [ Terms of Use ](/en-us/legal/termsofuse)
* [ Trademarks ](ht... | |
Learn_filter_financial_functions/34725231_24_0.txt | 1,266 Views
0 | |
Learn_filter_financial_functions/34725231_30_0.txt | Then once it looks correct, just replace the dummy record with
USERPRINCIPALNAME:
VAR _UPN = USERPRINCIPALNAME()
VAR _ID = LOOKUPVALUE(RLS[employee id], [Email Address], _UPN)
VAR _Path = PATH(RLS[employee id], RLS[Manager ID])
VAR _isChild = PATHCONTAINS(_Path, _ID)
RETURN
_isC... | |
Learn_filter_financial_functions/36842730_29_0.txt | VAR _accts=VALUES(Table2, [AccountID])
Return | |
Learn_filter_financial_functions/dax-rls-function-using-lookupvalue-parsing-but-not-working3_58_0.txt | * Policy: Generative AI (e.g., ChatGPT) is banned
* The [connect] tag is being burninated | |
Learn_filter_financial_functions/34725231_57_0.txt | In this revised code, we use GENERATE to create a table that contains the
records where the 'Email' matches the logged-in user's email, and then we
apply PATHCONTAINS on this filtered table.
However, this approach might be more complex and harder to troubleshoot than
the measure-based RLS method I provided earlier. If... | |
Learn_filter_financial_functions/Learn_financial_3_1.txt | Versions ](/en-us/previous-versions/)
* [ Blog ](https://techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog)
* [ Contribute ](/en-us/contribute/)
* [ Privacy ](https://go.microsoft.com/fwlink/?LinkId=521839)
* [ Terms of Use ](/en-us/legal/termsofuse)
* [ Trademarks ](https://www.micr... | |
Learn_filter_financial_functions/36842730_12_0.txt | DAX in RLS to filter one table based on filtered ID in another table
02-06-2024 05:15 PM | |
Learn_filter_financial_functions/17407304_76_0.txt | WarrenStaples
Frequent Visitor | |
Learn_filter_financial_functions/34725231_26_0.txt | hnguy71
Memorable Member | |
Learn_filter_financial_functions/34725231_84_0.txt | In response to IzBell
* Mark as New
* Bookmark
* Subscribe
* Mute
* * Subscribe to RSS Feed
* * Permalink
* Print
* * Report Inappropriate Content | |
Learn_filter_financial_functions/36842730_83_0.txt | Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin),
7:00-8:30 PM Mexico City
Register Now | |
Learn_filter_financial_functions/17407304_94_0.txt | * Mark as New
* Bookmark
* Subscribe
* Mute
* * Subscribe to RSS Feed
* * Permalink
* Print
* * Report Inappropriate Content
## | |
Learn_filter_financial_functions/36842730_7_0.txt | Register now to learn Fabric in free live sessions led by the best Microsoft
experts. From Apr 16 to May 9, in English and Spanish.
* Power BI forums
* * Forums
* * Get Help with Power BI
* * Desktop
* * DAX in RLS to filter one table based on filtered I... | |
Learn_filter_financial_functions/17407304_65_0.txt | 1,291 Views
0 | |
Learn_filter_financial_functions/34725231_17_0.txt | 'Employee_List',
'Employee_List'[Email]= USERPRINCIPALNAME() | |
Learn_filter_financial_functions/17407304_90_0.txt | Blog: WhatTheFact.bi
Message 8 of 11 | |
Learn_filter_financial_functions/dax-rls-function-using-lookupvalue-parsing-but-not-working3_23_0.txt | EmployeeID | ManagerHierarchy
---|---
1 | 3&4&5
2 | 6&7&4&5
The ManagerHierarchy column is a string that shows all managers of an employee
concatenated together and separated by "&".
The goal of the RLS is to create a filter that allows any manager to view the
report and have their data only displa... | |
Learn_filter_financial_functions/Learn_financial_0_1.txt | e
1000 | Par value
2 | Frequency is semiannual (see above)
0 | 30/360 basis (see above)
### Example 1
The following DAX query:
EVALUATE
{
ACCRINT(DATE(2007,3,1), DATE(2008,8,31), DATE(2008,5,1), 0.1, 1000, 2, 0)
}
Returns the accrued interest from issue to settl... | |
Learn_filter_financial_functions/dax-rls-function-using-lookupvalue-parsing-but-not-working3_65_0.txt | PowerBI RLS Manage Roles with Multi table
0 | |
Learn_filter_financial_functions/36842730_4_0.txt | All community This category This board Knowledge base Users cancel
Turn on suggestions | |
Learn_filter_financial_functions/36842730_82_0.txt | Announcements
#### Microsoft Fabric Learn Together | |
Learn_filter_financial_functions/17407304_40_0.txt | where do you want to use that?
Is that the criteria for a role? | |
Learn_filter_financial_functions/34725231_117_0.txt | #### Fabric Community Update - April 2024
Find out what's new and trending in the Fabric Community. | |
Learn_filter_financial_functions/17407304_89_0.txt | Best regards
Denis | |
Learn_filter_financial_functions/36842730_67_0.txt | As you want to filter Table 3 based on the sales reps' access to accounts in
Table 2 using Row-Level Security (RLS), you can use below DAX in your Table 3
filter to check if each AccountID is included in the list of AccountIDs
accessible to the current user through Table 2.
Filter Table 3 by Sales Rep Access = | |
Learn_filter_financial_functions/34725231_87_0.txt | Here's the modified version:
VAR _BaseTable = ADDCOLUMNS(RLS, "@BasePath", PATH(RLS[Employee id], RLS[Manager ID]))
VAR _Generate =
FILTER(
GENERATE(
_BaseTable,
VAR _UPN = USERPRINCIPALNAME()
VAR _uID = LOOKUPVALUE(RLS[employee id], RLS[Email Address],... | |
Learn_filter_financial_functions/34725231_14_0.txt | I have a table called “Employee_List”:
employee id | Employee name | Manager ID | IsManager? | Email Address
---|---|---|---|---
1001 | Abby | | 1 | Abby@xx.com
1002 | John | 1001 | 1 | John@xx.com
1003 | Willy | 1001 | 1 | Willy@xx.com
1004 | Bill | 1002 | 0 | Bill... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.