Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Sample data as below -
Build | Category | PRNumber | Seq |
b1 | Cat1 | PR1010 | 1 |
b2 | Cat2 | PR1022 | 2 |
b3 | Cat3 | PR10333 | 3 |
b4 | Cat1 | PR10444 | 4 |
b5 | Cat2 | PR1055 | 5 |
b6 | Cat3 | PR4567 | 6 |
Req –
In the above table we have a build column with text attribute and users need to capability to choose the fromBuild and toBuild.
To achieve this we a created a sequence col based on build
Two disconnected tables based on build 1.FromBuild 2.ToBuild
Created a measure as below –
# Of PRs =
CALCULATE (
DISTINCTCOUNT (build[PRNumber] ),
FILTER (
build,
(build[Seq] >= 5 && build[Seq]<=6)))
5,6 are hardcoded but these values are passing from disconnected tables. Now no issues every thing working as expected.
Now the problem is, if we need to create a slicer based on Category (highlited below) from build table and these values should be filtered between the selected fromBuild and toBuild values. This I couldn’t able to achieve this. Can you help on this.
Solved! Go to Solution.
Hi @hanuraolm
You can refer to the following measure, it does not need to create the seq column
# Of PRs =
IF (
ISFILTERED ( frombuild[Build] ) && ISFILTERED ( frombuild[Build] ),
CALCULATE (
DISTINCTCOUNT ( build[PRNumber] ),
FILTER (
build,
[Build] >= SELECTEDVALUE ( frombuild[Build] )
&& [Build] <= SELECTEDVALUE ( tobuild[Build] )
)
),
CALCULATE (
DISTINCTCOUNT ( build[PRNumber] ),
FILTER ( build, [Build] >= "b5" && [Build] <= "b6" )
)
)
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @hanuraolm
You can refer to the following measure, it does not need to create the seq column
# Of PRs =
IF (
ISFILTERED ( frombuild[Build] ) && ISFILTERED ( frombuild[Build] ),
CALCULATE (
DISTINCTCOUNT ( build[PRNumber] ),
FILTER (
build,
[Build] >= SELECTEDVALUE ( frombuild[Build] )
&& [Build] <= SELECTEDVALUE ( tobuild[Build] )
)
),
CALCULATE (
DISTINCTCOUNT ( build[PRNumber] ),
FILTER ( build, [Build] >= "b5" && [Build] <= "b6" )
)
)
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
124 | |
79 | |
50 | |
38 | |
38 |
User | Count |
---|---|
195 | |
80 | |
70 | |
51 | |
42 |