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.
Hi,
I would like to ask is possible to make that within one measure to able to visualize multiple lines at time?
For example, I select 2021, 2022 years at time and expect to see two lines in visual. Visual lines number depends on selected years.
Below is date slicer.
This is how looks visual. Green line expression:
Pardavimai santykis_h_k1_kiek_test =
var metu_uzdarymo_pozymis=[ABC_Metu_uzdarymo_ZU0_KOD]
var selected=SELECTEDVALUE('Date'[Metai])
var valandos= CALCULATE([kiek],FILTER('view_ziniarast_cp','view_ziniarast_cp'[year] = selected))
/*var savikaina= sumx(FILTER('DBA view_DidknObj', RELATED('Sas kod unik BRIDGE'[POZYMIAI Veiklu (Excel AUTO)])="Savikaina"&&Find(metu_uzdarymo_pozymis,'DBA view_DidknObj'[ZU0_KOD],,0)=0), 'DBA view_DidknObj'[SUM_DEB]-'DBA view_DidknObj'[SUM_CRE])*/
return
if([kiek]=BLANK(),"",DIVIDE([BP Pardavimai DK+-50],valandos))
year is equal selected but it works only if I select one year in date slicer, whenever I select more than one year, nothing appears, no lines. So how to resolve this issue?
@Analitika you can put year in the legend like below.
Proud to be a Super User!
But I am using line and clustured column chart. And line is a separate measure. One measure for columns and another measure for lines in visual.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
75 | |
63 | |
51 | |
48 |
User | Count |
---|---|
204 | |
86 | |
64 | |
59 | |
56 |