Customize default values for each user in Power BI reports

  Рет қаралды 19,455

SQLBI

SQLBI

Күн бұрын

Пікірлер
@sidimohamdy2793
@sidimohamdy2793 2 жыл бұрын
Thanks a lot it works for me, but only after I changed the "ISCROSSFILTERED" to "ISFILTERED". very helpful
@henrifanda4784
@henrifanda4784 3 жыл бұрын
very good video. in the last section, you didn't select 'Yes-3' to demonstrate the result, but I am sure it is exactly like Yes-2. thanks so much for this enlightening DAX coding. very clear step by step.
@SQLBI
@SQLBI 3 жыл бұрын
Yes, you are right
@williamrodriguez2694
@williamrodriguez2694 3 жыл бұрын
I think the unsung hero is the true/false statements within the '___ToUse' variables. Example: If YearsAlreadyFiltered = false, apply the filter (i.e., 'Date'[Calendar Year] IN UserDefaultYears); if YearsAlreadyFiltered = true, do not apply the filter ('Date'[Calendar Year] IN UserDefaultYears). Alot to ponder... I think a blog post on this point alone would be brilliant. Thanks!
@Bharath_PBI
@Bharath_PBI 3 жыл бұрын
Thank you, this is another feature which would be great to have it implemented in power bi, just like many others (ex: dynamically switching dimensions on the chart axis). However 1 note, the code at the last was written for Yes Generic, but couldn't get to see that in the video, anyway that's for us to check it. Thank you 👍
@bryanchaves5691
@bryanchaves5691 3 жыл бұрын
Great video. Just one question: is it possible to use USERRELATIONSHIP to retrieve a TEXT table?
@ricci.hidalgo
@ricci.hidalgo 2 жыл бұрын
Many thanks, very useful and clear explanation. I developed a simple report based on 2 tables in Excel (conventional data model), one table as "Sales by group" and the other table a "Username by group" with a many to many limited relationship, following your video step by step. Unfortunately the filter did not work with the connected user USEREPRINCIPALNAME() when no values are selected on the slicer. I think that your example on the video is a cube model from SSAS; does this solution work only in this mode? Maybe the problem is the limited relationship between the 2 tables on my model (with parenthesis on the model diagram in PBI desktop)?
@fernalication
@fernalication 3 жыл бұрын
Great video. At the beginning you mentioned about the current limitation. If only USERPRINCIPALNAME() could be used in calculated tables and calculated columns this problem could be solved, right?
@samuelmanseau467
@samuelmanseau467 3 жыл бұрын
Very usefull video ! Thanks for the concrete advice ! Hope tahe Microsoft will listen to you!
@abhishekroy5054
@abhishekroy5054 3 жыл бұрын
In the last step you still checked with YES-2 instead of YES-generic. I know the code is right but it's just good if you did test the code with right calculation group.
@SQLBI
@SQLBI 3 жыл бұрын
Oh yes... you can check it by downloading the file, anyway!
@masumbillah9598
@masumbillah9598 2 жыл бұрын
Thanks for your video. I have a problem. I a table that have some same Date, section & two line wise manpower for two manpower. Now need date maximum manpower in a line & minimum Manpower is Zero. Plz Help me
@saratchandra7388
@saratchandra7388 3 жыл бұрын
We have syncslicer in report which is year,quarter,month name slicer and a line chart visual which show calculation based on 29 days before current date calculation.in line chart we need default to latest 3 months and user can select on slicer other than 3 months but we can't filter on slicer to latest 3 months because it is synced with other pages.how can we achieve this one could you suggest any idea? As there is calculation on date in measure which filter down to 29 days how can we achieve this one ?
@aryansena7290
@aryansena7290 3 жыл бұрын
Hi , Can you create a table as per slicer selection .. consider I'd column in a rows like 1,2,3,4. And a slicer using this I'd column.. now if I select I'd from slicer 3 then a table will be created which has all data with I'd 3. Please let me know if requirement is not clear
@michelehomem8052
@michelehomem8052 3 жыл бұрын
At the end of the video, the Calculation Item "YES-Generic" was created, but the final test was done with "YES-2" again, wasn't it? Thanks for the excellent video, like always!
@SQLBI
@SQLBI 3 жыл бұрын
Ops, sorry... thanks for the info!
@joaoluismartins
@joaoluismartins 3 жыл бұрын
Heyy Alberto, I think you've showed the YES-2 and not the Generic at the end of the video 😂. Despite, great video and learning! Super thanks for sharing! Cheers, João Martins
@dariuszspiewak5624
@dariuszspiewak5624 3 жыл бұрын
Hi Alberto. Would it not solve the problem if you stored in your helper tables a user called ALL that would be paired with all the possible values that exist in the other tables? I think that would solve the problem nicely.
@mabl4367
@mabl4367 3 жыл бұрын
Very nice! You never tested "Yes generic". Also isn't there a problem with the logic in "Yes generic"? Would not the default values always be included even ef the user place a filter on the year our country using the slicers? The default values will always be included in the YearsToUse and CountriesToUse. I have not tested this myself.
@SQLBI
@SQLBI 3 жыл бұрын
Give it a try, the logic is to compute the defaults, but then move the filter manually using TREATAS, and there is where the choice is made.
@granand
@granand 2 жыл бұрын
sir, why do we need Tabular editor, I might have missed a video when you have explained. Can we do the same in powerBI DAX
@SQLBI
@SQLBI 2 жыл бұрын
See www.sqlbi.com/articles/development-tools-for-tabular-models-in-2021
@gonzalocasanova9048
@gonzalocasanova9048 3 жыл бұрын
Liked the explanation,just a but... last Item was Yes -Generic and you showed Yes-2 . So not really checked if the code worked fine. Btw, great content each week !!
@SQLBI
@SQLBI 3 жыл бұрын
Ops... it happens sometimes :)
@sane7263
@sane7263 3 жыл бұрын
Great Vid, though I don't understand why we even bother making "Generic" Calculation?
@kalinduSekara
@kalinduSekara 3 жыл бұрын
👍
@joaorataoo
@joaorataoo 2 жыл бұрын
Instead of using the CALCULATE with ISCROSSFILTER() with ALLSELETED() could not be used HASONEFILTER(Store[CountryRegion]) ?
@SQLBI
@SQLBI 2 жыл бұрын
It would be slower and it would not discriminate whether a filter is applied inside the visual or in an external slicer.
10 Steps to Optimize Your Data Model in Power BI
13:41
How to Power BI
Рет қаралды 76 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
When to use KEEPFILTERS over iterators
18:56
SQLBI
Рет қаралды 50 М.
Bidirectional relationships and ambiguity
14:02
SQLBI
Рет қаралды 112 М.
Using ALLEXCEPT vs ALL VALUES
13:35
SQLBI
Рет қаралды 57 М.
How to fix Incorrect Totals in Power BI
14:44
Goodly
Рет қаралды 62 М.
Why Power BI totals might seem wrong
27:55
SQLBI
Рет қаралды 56 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН