Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi,
for an user requirment I need to filter a custom visual (Acterys Matrix). The filter has to check if:
In SQL the Query would transfer to:
WHERE (ReportDate >= '2021-04-30' AND status <> 'ACT') or (ReportDate < '2021-04-30' AND status <> 'FCT')
In the Filter Pane it seems like I can not add different fields to the same filter - And it would be convienent that the date could be selected from a drop down list.
As the Visual provides Write-Back functionality I have to work with the original query table- meaning I can only filter the data here and not with an "output"-table that is filtered by a look-up table...
What I tried so far was passing Parameters to the query which works fine . However, the End-User uses PowerBI web-service and I haven't found how a web-user can change/manage the parameters in the web version.
Any help apppreciated!
Max
Solved! Go to Solution.
Hi,
I found a solution to my problem.
AmountSelect =
if(
OR(
OR(
OR(
AND(
SELECTCOLUMNS(RELATEDTABLE('OLAP KennzahlenDimension'), "ACT", [Name])= "ACT",
SELECTCOLUMNS(RELATEDTABLE('OLAP KennzahlenZeitDimension'), "yearmon", [yearmon]) <= [selectDate]),
AND(
SELECTCOLUMNS(RELATEDTABLE('OLAP KennzahlenDimension'), "FCT", [Name])= "FCT",
SELECTCOLUMNS(RELATEDTABLE('OLAP KennzahlenZeitDimension'), "yearmon", [yearmon]) > [selectDate])),
SELECTCOLUMNS(RELATEDTABLE('OLAP KennzahlenDimension'), "ACT", [Name]) = "SomeOtherCondtion"),
SELECTCOLUMNS(RELATEDTABLE('OLAP KennzahlenDimension'), "ACT", [Name])= "SomeOtherCondition2"),
SUM('OLAP CUBE'[Amount])
)
Hi,
I found a solution to my problem.
AmountSelect =
if(
OR(
OR(
OR(
AND(
SELECTCOLUMNS(RELATEDTABLE('OLAP KennzahlenDimension'), "ACT", [Name])= "ACT",
SELECTCOLUMNS(RELATEDTABLE('OLAP KennzahlenZeitDimension'), "yearmon", [yearmon]) <= [selectDate]),
AND(
SELECTCOLUMNS(RELATEDTABLE('OLAP KennzahlenDimension'), "FCT", [Name])= "FCT",
SELECTCOLUMNS(RELATEDTABLE('OLAP KennzahlenZeitDimension'), "yearmon", [yearmon]) > [selectDate])),
SELECTCOLUMNS(RELATEDTABLE('OLAP KennzahlenDimension'), "ACT", [Name]) = "SomeOtherCondtion"),
SELECTCOLUMNS(RELATEDTABLE('OLAP KennzahlenDimension'), "ACT", [Name])= "SomeOtherCondition2"),
SUM('OLAP CUBE'[Amount])
)
Hi, @Anonymous
Great to hear the problem got resolved! Could you accept your reply above as solution to close this thread?
Other community members will easily find the solution when they get the same issue.
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 40 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 25 |